You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/02/16 06:56:38 UTC
DO NOT REPLY [Bug 6498] New: -
URL Redirection is broken
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: tomcat-dev@jakarta.apache.org
ReportedBy: elkner@linofee.org
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>