Tomcat-Apache-Integration, Subdomains and SSL
843842Feb 2 2009 — edited Mar 9 2009Hi there!
I'm trying to integrate an Tomcat as Virtual Host in Apache Webserver. Apache should redirect to Tomcat when a subdomain is called, e.g. ws.localhost.xx.
Everything works fine thus far. However, I have to set up SSL. SSL on a isolated Apache Server runs perfectly.
But when the redirection takes place, the following error occures:
- In Browser: ssl_error_rx_record_too_long
- In Apache log-File: Invalid method in request \x16\x03\x01
I read that this exception might occure when a server answers with plain http on a https-request. Is this possible?
The Tomcat-Documentation just mentions that settings have to be changed in Apache Server, not in Tomcat.
Here is my mod_jk.so / mod_ssl.so configuration for Apache:
virtual host:
<VirtualHost ws.localhost.xx:443>
ServerName ws.localhost.xx
SSLEngine On
SSLCertificateFile conf/ssl/ws.localhost.xx.cer
SSLCertificateKeyFile conf/ssl/ws.localhost.xx.key
SSLCipherSuite ALL:!ADH:!EXP56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
</VirtualHost>
ssl.conf:
ServerName localhost
Listen 443
SSLMutex default
SSLRandomSeed startup builtin
SSLSessionCache none
Thanks in advance!