You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Maureen Fisher <mf...@cornell.edu> on 2000/08/10 21:20:16 UTC

rewrite rule

Using mod_rewrite on my jsp directory (to redirect those requests to the SSL port) it seems to drop off the context container and take the rest of the URI.
For example, from the rewrite log:
IP - - [10/Aug/2000:14:36:50 -0400] [hostname.cornell.edu:8080/sid#200cdfd0][rid#2016d600/subreq] (3) applying pattern '^/jsp/ee(.*)' to uri '/test/'

The real URI is hostname:8080/jsp/ee/test/

The rewrite rule is:
RewriteRule ^/jsp/ee(.*)	https:/hostname.cornell.edu:8443/jsp/ee$1

If I create a test rule to map the root to the SSL port it works. 
ie
RewriteRule ^/(.*)	https://hostname.cornell.edu:8443/$1

Any ideas? (The strangest part is that it worked yesterday.)
========================================================
Maureen Fisher, CIT/ASDT, Cornell University
Ithaca, NY 14850
mf12@cornell.edu
http://mo.cit.cornell.edu/
Ad astra per aspera