Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Tomcat 6 + Apache 2.0 with SSL

Roger Roger

2007-07-05

Replies:

Hi there!

I have some questions about how to setup Apache and Tomcat with SSL
support. Currently I have the following setup:

- Windows 2003
- Tomcat 6.0.13
- Apache 2.0.59 with
- openssl 0.9.7j
- mod_ssl
- mod_proxy
- mod_rewrite (not used)

I have generated keys that work with Apache. So I can open a page like
https://localhost/. I've tried to use mod_proxy to redirect all
traffic to Tomcat, which works for http and https, using the following
setup:

<IfModule mod_ssl.c>
  Include conf/ssl.conf
</IfModule>

ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/

<VirtualHost *:443>
  SSLProxyEngine On
  ProxyPass https://localhost:443/ https://localhost:8443/
  ProxyPassReverse https://localhost:443/ https://localhost:8443/
</VirtualHost>

I have the following questions:

1) Is this a normal setup? Anything that could cause a problem?
2) I want to be able to route traffic for one webapp to https, not
allowing it to be used via http. I don't care if this is done using
mod_rewrite or mod_proxy or anything else.

All suggestions are appreciated!

Thanks,

Roger

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.