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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Fri Dec 27 01:01:28 2024 UTC