httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joseph Silverman <>
Subject Fwd: [users@httpd] Help with mod_rewrite ..
Date Tue, 24 Apr 2007 16:57:01 GMT
In order to make a virtual domain ONLY serve up a single webapp, I am  
trying to use mod_rewrite in it, thus (I replaced all sensitive  
information in the stanza below):

<VirtualDomain *:80>
     JkMount /dir        tomcat
     JkMount /dir/*      tomcat
     RewriteEngine ON
     RewriteRule !^/dir /dir/ [R,L]
     <Location />
        AuthType Basic
        AuthName "Dir"
        AuthUserFile /home/password/htpasswd
        require user dir

the RewriteRule causes an infinite loop error when I try to fetch a  
page..  Oddly, this has worked in the past.

Any suggestions as to what I am doing wrong?  I've tried lots of  
different flags on the RewriteRule (ns, ne, pt) all to no avail.  is  
this an interaction with mod_jk?

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message