Incorrect _SERVER["SERVER_PORT"] returned??

Incorrect _SERVER["SERVER_PORT"] returned??

am 02.10.2009 01:26:53 von Bob Schell

--00163683269c91a4530474e7fbba
Content-Type: text/plain; charset=ISO-8859-1

Hello. I have configured my RHEL5 Apache system with SSL. I verified that
SSL was installed correctly and accessing the site via SSL works as
expected.

The problem I am having is my PHP code is pulling the
$_SERVER['SERVER_PORT'] variable and this is coming back as 80 rather than
443.

Here is my code within HTTPD.CONF




ServerAdmin first.name@xyz.com

DocumentRoot /var/www/html/redcap

ServerName name.url.edu

ErrorLog logs/

CustomLog logs/


I can get 443 to be returned from _SERVER['SERVER_PORT'] if I edit the 3rd
line above to :

ServerName name.url.edu:443

But, if I do this, it messes a few other things up internal to the site.

Does anyone have an idea why _SERVER['SERVER_PORT'] is returning 80 rather
than 443?

Any thoughts would be much appreciated.

Regards,

--00163683269c91a4530474e7fbba--

Re: Incorrect _SERVER["SERVER_PORT"] returned??

am 02.10.2009 09:53:14 von kranthi

i dont have any idea about your problem, but just an idea....

have you used https://localhost in the browser while trying to check
_SERVER['SERVER_PORT'] ?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php