Hi all, I'm running Windows XP, and here is a piece of my apache (2.2.8)
conf :
--- httpd.conf ---
... ... ...
Listen 81
Listen 80
Listen 8080
LoadModule php5_module "e:/php/php5apache2_2.dll"
LoadModule fastcgi_module modules/mod_fastcgi.dll
AddType application/x-httpd-php .php
... ... ...
--- vhosts.conf ----
NameVirtualHost 127.0.0.1:81
<VirtualHost 127.0.0.1:81>
ServerName myserver
DocumentRoot e:/www
ScriptAlias /php/ "e:/php53/"
Action php5-fastcgi "/php/php-cgi.exe"
AddHandler php5-fastcgi .php
</VirtualHost>
That's a configuration to be able to run both PHP 5.2 (as apache module),
and PHP 5.3 (throught fast-cgi) on the same apache2 instance.
There are no apache rewrite rules in my stuff.
All works right, the only problem is that in both cases,
$_SERVER["SERVER_PORT"] returns 80, even when I'm connected throught port
81.
Is it a fastcgi / Apache bug or does it come from PHP or even me :-) ?
Cheers
Julien.P