httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joseph Silverman <yos...@laszlosystems.com>
Subject [users@httpd] Help with mod_rewrite ..
Date Sun, 22 Apr 2007 16:09:32 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>
     ServerName dir.com
     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
     </Location>
</VirtualDomain>

the RewriteRule causes an infinite loop error when I try to fetch a  
page..

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:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message