tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Baker <>
Subject modssl apache tomcat and rewrites
Date Wed, 21 Aug 2002 22:49:10 GMT
I found a nice little snippet of code to force certain
pages to be served via ssl by applying a rewrite wule
to them. What I want is to have apache change 


Here is my rewrite rule that I adapted from the
mod_ssl FAQ.

RewriteEngine on
RewriteRule   ^/(.*):SSL$   https://%{SERVER_NAME}/$1
\ [R,L]
RewriteRule   ^/(.*):NOSSL$ http://%{SERVER_NAME}/$1 
\ [R,L]

I can get https to work if the typed in url begins
with https, but the rewrite always yeilds a 404. BTW,
I'm using a pathced apache version 1.3.22, and tomcat
3.2.3. We are planning to upgrade, but can't yet.

Hacking is a "Good Thing!"

Do You Yahoo!?
HotJobs - Search Thousands of New Jobs

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

View raw message