tomcat-users mailing list archives

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

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 
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 

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 


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message