Re: Detecting HTTPS connections under Apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



LOL :)
Just saw phpinfo() and you are right, it shows port 80 even if it's httpS :0

But the problem is, that $_SERVER['SERVER_PORT'] is apache variable and not
php, meaning that apache is telling PHP that it works on port 80.
Even if you use .htaccess and variable "%{SERVER_PORT}" it will not work (or
will?) :(

I personally would solve this by two virtualhost setting in apache. Then one
line in virtaulhost:
*php_flag [variable_name] [value]*
could help me if it's secure or not...
Can you try that?

But I agree with @Richard, you have few issues with LAMP configuration....

Regards


On Sat, May 28, 2011 at 19:52, Geoff Shang <geoff@xxxxxxxxxxxxxxx> wrote:

> On Fri, 27 May 2011, Curtis Maurand wrote:
>
>  $_SERVER['HTTPS']
>>
>
> I don't see this at all.
>
> I'm definitely connecting securely.  Here are the status lines from Lynx
> when surfing to https://MintFM.net/phpinfo.php:
>
>    1. Looking up mintfm.net
>    2. Making HTTPS connection to mintfm.net
>    3. Verified connection to mintfm.net (cert=mintfm.net)
>    4. Certificate issued by: /C=FR/O=GANDI SAS/CN=Gandi Standard SSL CA
>    5. Secure 128-bit TLS1.0 (DHE_RSA_AES_128_CBC_SHA1) HTTP connection
>    6. Sending HTTP request.
>    7. HTTP request sent; waiting for response.
>    8. HTTP/1.1 200 OK
>    9. Data transfer complete
>
> So it's definitely secure, but I'm not seeing anything in $_SERVER that
> says so.  So I'm wondering if Apache is not exporting something properly.
>
>
> Geoff.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux