RES: [PHP] SERVER_PORT always at 80 ?

From: Date: Fri, 11 Apr 2008 14:19:18 +0000
Subject: RES: [PHP] SERVER_PORT always at 80 ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-272877@lists.php.net to get a copy of this message
{Top posting} What shows your phpinfo() on both ports? Is it really running your 5.3 in :81? Regards, Thiago -----Mensagem original----- De: Julien Pauli [mailto:doctorrock83@gmail.com] Enviada em: sexta-feira, 11 de abril de 2008 09:28 Para: PHP General list Assunto: [PHP] SERVER_PORT always at 80 ? 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

« previous php.general (#272877) next »