httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruediger Pluem <rpl...@apache.org>
Subject Re: 2.0.x
Date Wed, 19 Jul 2006 21:29:55 GMT


On 07/19/2006 10:25 PM, William A. Rowe, Jr. wrote:
> Ruediger Pluem wrote:
> 
>> On 19.07.2006 17:38, William A. Rowe, Jr. wrote:
>>
>>> Actually, does this handle the nested case (more than one level depth?)
>>
>>
>> Which case exactly do you have in mind?
> 
> 
> I have to investigate which modules can cause redirects similar to
> mod_dir's
> internal redirect, but the gist is <Directory /webcontent>, user accesses
> /one/document.html, user is served /two/document.html from a redirect,
> where
> document.html in /webcontent/two/ is our evil symlink.

Just to be sure that we are on the same page:

euler:/usr/src/apache/apache_trunk/htdocs # ls -Rl webcontent/
webcontent/:
total 16
drwxr-xr-x    4 ruediger users        4096 Jul 19 23:04 .
drwxr-xr-x    5 ruediger users        4096 Jul 19 23:04 ..
drwxr-xr-x    2 ruediger users        4096 Jul 19 23:04 one
drwxr-xr-x    2 ruediger users        4096 Jul 19 23:05 two

webcontent/one:
total 8
drwxr-xr-x    2 ruediger users        4096 Jul 19 23:04 .
drwxr-xr-x    4 ruediger users        4096 Jul 19 23:04 ..

webcontent/two:
total 8
drwxr-xr-x    2 ruediger users        4096 Jul 19 23:05 .
drwxr-xr-x    4 ruediger users        4096 Jul 19 23:04 ..
lrwxrwxrwx    1 ruediger users          11 Jul 19 23:05 document.html -> /etc/passwd

<Directory "/usr/src/apache/apache_trunk/htdocs/webcontent">
   Options SymLinksifOwnerMatch
   RewriteEngine on
   RewriteRule ^one/document.html$ two/document.html [L]
</Directory>


Is this the scenario you had in mind? This works correctly with the patch.

Regards

RĂ¼diger

Mime
View raw message