You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Charles Baker <ra...@yahoo.com> on 2002/08/22 00:49:10 UTC
modssl apache tomcat and rewrites
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>