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=6498>.
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=6498

URL Redirection is broken

           Summary: URL Redirection is broken
           Product: Tomcat 4
           Version: 4.0.2 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Webapp Connector
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Szenario:

1) Apache in an intranet used as virtual host e.g. apaci.intra.netz:80
2) as you can guess apaci.intra.netz is known in the intranet (has its 
   own DNS), only
3) tests from internet is allowed via an ssh gateway only, so
   ssh -f -x -L 8080:apaci:80 ssh.gate.way

Now, accessing http://localhost:8080/webapp-info or /examples/index.html
seems to work perfect, but accessing http://localhost:8080/examples/servlets/
does not, since the  HTTP_HOST is rewritten to SERVER_NAME which is IMHO wrong.

E.g.: A request to http://localhost:8080/examples/servlets/ returns

HTTP/1.1 302 Found
Date: Sat, 16 Feb 2002 03:55:26 GMT
Server: Apache/1.3.20 (Unix)
Content-Type: text/html
Location: http://apaci.intra.netz/examples/servlets/index.html
Transfer-Encoding: chunked


but should return:

HTTP/1.1 302 Found
Date: Sat, 16 Feb 2002 03:55:26 GMT
Server: Apache/1.3.20 (Unix)
Content-Type: text/html
Location: http://localhost:8080/examples/servlets/index.html
Transfer-Encoding: chunked

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to