tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Baker <raschar...@yahoo.com>
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 

http://my.domain.com/form.jsp 

to

https://my.domain.com/form.jsp

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.

=====
rascharles@yahoo.com
http://www.charleshbaker.com/~chb/
Hacking is a "Good Thing!"
See http://www.tuxedo.org/~esr/faqs/hacker-howto.html

__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message