tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Schönhaber <mailing-tomcat-u...@schoenhaber.de>
Subject Tomcat 5.5.10: APR-SSL generates wrong 302 response
Date Mon, 25 Jul 2005 12:16:12 GMT
Hello!

I've configured Tomcat 5.5.10 to use APR. The HTTP-Connector listens on port 
80, the HTTPS-Connector listens on port 443. A request for 
https://www/tomcat-docs
generates the following response:
 
GET /tomcat-docs HTTP/1.1 
Host: www 
User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.8b4) Gecko/20050721 
Firefox/1.0+ 
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5

Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3 
Accept-Encoding: gzip,deflate 
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 
Keep-Alive: 300 
Connection: keep-alive 
 
HTTP/1.x 302 Moved Temporarily 
Server: Apache-Coyote/1.1 
Location: https://www:80/tomcat-docs/ 
Transfer-Encoding: chunked 
Date: Mon, 25 Jul 2005 11:57:39 GMT 

Obviously this doesn't work since since the redirection response tells the 
browser to connect to the HTTP port using HTTPS.
This problem does *not* occur if:
- The request is for https://www/tomcat-docs/ (no surprise since no redirect 
response is generated in this case).
- The HTTPS-Connector is configured to listen on port 8443 (or propably any 
other non-standard HTTPS-port - but I haven't tried).
- APR isn't used at all.

BTW: tomcat-docs is just an example. With other web-apps thre's the same 
problem.

Regards
  mks

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message