httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joseph Silverman <yos...@laszlosystems.com>
Subject Re: [users@httpd] Help with mod_rewrite ..
Date Wed, 25 Apr 2007 18:52:02 GMT
I should tell everyone what it turned out to be, namely, the behind  
the scenes apache delivery of the uri /error/ 
HTTP_UNAUTHORIZED.html.var to handle the Auth access rules - which  
would be rewritten as /dir/, ad infinitum.

Changing the RewriteRule  to:

     RewriteRule !^(/dir|/error/HTTP_UNAUTHORIZED.html.var$) /dir/

Corrected this problem.

- Yossie

On Apr 24, 2007, at 1:05 PM, Joshua Slive wrote:

> On 4/24/07, Joseph Silverman <yossie@laszlosystems.com> wrote:
>> 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..  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?
>
> Have you used the RewriteLog?
>
> Does this work without the RewriteRule?
>
> How is UseCanonicalName set?
>
> Joshua.
>
> ---------------------------------------------------------------------
> 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
>


---------------------------------------------------------------------
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