You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by aspa <ma...@kronodoc.com> on 2004/04/08 20:36:02 UTC

[users@httpd] Re: SERVER_PORT value after redirect in Apache 2.0

Joshua Slive wrote:
>>i'm developing a FastCGI program on top of Apache 2.0.49. i noticed
>>> that after the application does a redirect to itself using the Location
>>> header the SERVER_PORT environment variable value is incorrect. if the
>>> application URL is
>>>
>>> https://foo.bar.com:9999/helloworld
>>>
>>> and the application redirects to itself then the application sees the
>>> following environment variable values:
>>> 	SERVER_PORT=443
>>> 	REDIRECT_SERVER_PORT=9999
>>>
>>> is this a bug?
> 
> Could be.  What do you have for ServerName and UseCanonicalName?

i hadn't set ServerName at all and UseCanonicalName was set to Off. when
i explicitly set ServerName to foo.bar.com:9999 SERVER_PORT value is
correct after redirection. setting ServerName to foo.bar.com is not
enough as it was with Apache 1.3.

t. aspa




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org