httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Ionescu <robsie...@googlemail.com>
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
> [INTERNAL REDIRECT].

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

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

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.

-- 
Robert

Mime
View raw message