httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 20955] New: - Redirected http error generates wrong SERVER_PORT.
Date Fri, 20 Jun 2003 14:35:07 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20955>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20955

Redirected http error generates wrong SERVER_PORT.

           Summary: Redirected http error generates wrong SERVER_PORT.
           Product: Apache httpd-2.0
           Version: 2.0.46
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: fred@surleau.com


Hi,
I configured Apache to listen port 81 :
Listen 81

I also configured an ErrorDocument :
Alias /error/ "/usr/local/apache2_0_46/error/" 
ErrorDocument 404 /error/HTTP_ERROR.php

When a 404 error occurs, the request is redirected HTTP_ERROR.php
In HTTP_ERROR.php the value of $_SERVER['SERVER_PORT'] is 80.

The good port number (81) can be read in $_SERVER['REDIRECTED_SERVER_PORT'] so 
the problem isn't critical, but the question is why $_SERVER['SERVER_PORT']
=80 ?

Best regards,
F.SURLEAU

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message