Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Tomcat-Apache-Integration, Subdomains and SSL

843842Feb 2 2009 — edited Mar 9 2009
Hi 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!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 6 2009
Added on Feb 2 2009
1 comment
314 views