php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #61379 Set _SERVER['HTTPS'] to on for SPDY connections
Submitted: 2012-03-13 21:55 UTC Modified: 2012-03-14 01:18 UTC
From: rickard at 0x539 dot se Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5.3.10 OS: Linux 2.6
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rickard at 0x539 dot se
New email:
PHP Version: OS:

 

 [2012-03-13 21:55 UTC] rickard at 0x539 dot se
Description:
------------
When playing around with the mod_spdy Apache module it seems that the HTTPS key in 
the _SERVER variable is set to off. I'm not sure if this is the job for PHP or 
SPDY but I thought I'd start here. 

Test script:
---------------
<?php 

/* 1. Install mod_spdy using the instructions from http://code.google.com/p/mod-spdy/wiki/GettingStarted

Connect to the server and dump _SERVER */ 

var_dump($_SERVER); 

Expected result:
----------------
  ["HTTPS"]=>
  string(3) "On"

Actual result:
--------------
array(40) {
  ["REDIRECT_SPDY_VERSION"]=>
  string(1) "2"
  ["SPDY_VERSION"]=>
  string(1) "2"

..

  ["SERVER_PORT"]=>
  string(3) "443"

..

  ["HTTPS"]=>
  string(3) "Off"
}

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-14 01:18 UTC] aharvey@php.net
-Status: Open +Status: Not a bug
 [2012-03-14 01:18 UTC] aharvey@php.net
It's going to be up to mod_spdy to set the relevant environment variable(s) in 
Apache.
 [2012-04-02 17:46 UTC] mdsteele at google dot com
Yes, this was an issue with mod_spdy that has just been fixed; see 
http://code.google.com/p/mod-spdy/issues/detail?id=32
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 07 11:01:27 2024 UTC