Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 59425 invoked from network); 21 Aug 2002 22:49:26 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 21 Aug 2002 22:49:26 -0000 Received: (qmail 28059 invoked by uid 97); 21 Aug 2002 22:49:43 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 28041 invoked by uid 97); 21 Aug 2002 22:49:43 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 28029 invoked by uid 98); 21 Aug 2002 22:49:42 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <20020821224910.20596.qmail@web14603.mail.yahoo.com> Date: Wed, 21 Aug 2002 15:49:10 -0700 (PDT) From: Charles Baker Subject: modssl apache tomcat and rewrites To: tomcat MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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: For additional commands, e-mail: