You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by /U <um...@comcast.net> on 2009/07/31 02:40:42 UTC
[users@httpd] Terminate SSL and forward to Tomcat
I have an installation of Tomcat with named vhosts.
I need an Apache webserver as the front-end to do the following:
a) Require HTTPS for all URLs under /secure/
b) for all requests of the form https://host/secure(/*),
- terminate SSL
- rewrite the URL to add a Host entry
- finally forward it to the local Tomcat instance.
I am not certain about how to direct Apache to terminate SSL first and
then do a URL rewrite. Is the following configuration typical?
RewriteEngine On
RewriteLogLevel 9
RewriteRule "^/secure(/.*)" "http://%{HTTP_HOST}$1" [R,L]
Now that I have enforces SSL on the request https://host/secure/...,
I want to the request (after SSL termination) to be redirected to
http://host:8080/secure/...
How can I accomplish this?
Tx
/U
--
View this message in context: http://www.nabble.com/Terminate-SSL-and-forward-to-Tomcat-tp24749444p24749444.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org