DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32439>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32439

           Summary: Apache ignores directives for the destination directory
                    when those directories are symlinked
           Product: Apache httpd-1.3
           Version: HEAD
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: core
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Let's assume two file systems, /home and /home2 ; /home2 contains 
the /home2/httpd/html as the DocumentRoot of the web server ; /home and /home2 
also contain users and their public_html/ web directories.

DocumentRoot (/home2/httpd/html) contains any number of symlinks to user's 
public_html/ folders, ie:
user1 -> /home/user1/public_html
user2 -> /home/user1/public_html
user3 -> /home2/user3/public_html
user4 -> /home2/user4/public_html

...which creates URLs of kind: http://www.somesite.com/user1 ,etc.

Apache httpd.conf (excert):
...
<Directory /home2/httpd/*>
    Options Indexes FollowSymLinks ExecCGI MultiViews
    AllowOverride AuthConfig
    Order allow,deny
    Allow from all
</Directory>

<Directory /home/*/public_html/>
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
</Directory>

<Directory /home2/*/public_html/>
        Options Indexes MultiViews  
        AllowOverride None
        Order allow,deny
        Allow from all
</Directory>
...
NameVirtualHost *
<VirtualHost *>
    ServerAdmin [EMAIL PROTECTED]
    DocumentRoot /home2/httpd/html
    ServerName www.somesite.com
    ErrorDocument 404 /missing.html
 
    RewriteEngine on
 
    <Directory /home/*/public_html/>
     RewriteRule     ^/(.+).avi$             /wrap.php?url=$1.avi [L]
    </Directory>
</VirtualHost>

With the above, Apache fails to process the Directory directive inside the 
VirtualHost and apply the RewriteRule to the matching user's files in /home/ 
filesystem because the destination folder was a symlink from the DocumentRoot 
and not a real folder.

I believe this to be an omission and that Apache should (must) check for any 
directives that relate to symlink destinations before processing the request.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to