httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Ionescu <>
Subject Re: [users@httpd] mod_rewrite and Location(Match)?
Date Sun, 02 Apr 2006 13:48:59 GMT
Alexander Lazic wrote:
> in VirtualHost-Contex but i loose the user after the

I tried to reproduce it (very limited because you posted only some parts 
of the RewriteLog, so it's hard to reconstruct the exact processing), 
but it works for me.
I attached the RewriteLog.

Used in virtual host:
RewriteEngine on
RewriteCond %{LA-U:REMOTE_USER} =""
RewriteCond %{QUERY_STRING} auth=require
RewriteRule ^/ - [F,NS]
DocumentRoot is /var/www

<LocationMatch "protect/test">
   AuthName "test"
   AuthType Basic
   AuthUserFile ...
   Require valid-user

<Directory "/var/www">
   RewriteEngine on
   RewriteRule ^protect/test/?$ /protect/test.php [L]
   Options FollowSymlinks

Request was /protect/test, rewritten to /protect/test.php (physically 
/var/www/protect/test.php) in per-dir context.

I can't reproduce jsp settings here.


View raw message