Re: SERVER_PORT always at 80 ?

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

 



Yes it runs on 5.3 on 81 and 5.2 on 80, both phpinfo() show port 80....

Regards, Julien.P

2008/4/11 Thiago Pojda <thiago.pojda@xxxxxxxxxxxxxxxxxx>:

> {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@xxxxxxxxx]
> Enviada em: sexta-feira, 11 de abril de 2008 09:28
> Para: PHP General list
> Assunto:  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
>
>
>

[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