Return-Path: Delivered-To: apmail-httpd-bugs-archive@www.apache.org Received: (qmail 35630 invoked from network); 17 Jun 2004 16:08:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 17 Jun 2004 16:08:06 -0000 Received: (qmail 69782 invoked by uid 500); 17 Jun 2004 16:08:10 -0000 Delivered-To: apmail-httpd-bugs-archive@httpd.apache.org Received: (qmail 69644 invoked by uid 500); 17 Jun 2004 16:08:09 -0000 Mailing-List: contact bugs-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: "Apache HTTPD Bugs Notification List" Delivered-To: mailing list bugs@httpd.apache.org Received: (qmail 69590 invoked by uid 99); 17 Jun 2004 16:08:08 -0000 Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.27.1) with SMTP; Thu, 17 Jun 2004 09:08:08 -0700 Received: (qmail 24512 invoked by uid 50); 17 Jun 2004 16:08:58 -0000 Date: 17 Jun 2004 16:08:58 -0000 Message-ID: <20040617160858.24511.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: bugs@httpd.apache.org Cc: Subject: DO NOT REPLY [Bug 29647] New: - Strange interaction between "ErrorDocument" directive and "SymlinksIfOwnerMatch" option X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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=29647 Strange interaction between "ErrorDocument" directive and "SymlinksIfOwnerMatch" option Summary: Strange interaction between "ErrorDocument" directive and "SymlinksIfOwnerMatch" option Product: Apache httpd-2.0 Version: 2.0.49 Platform: PC OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: Core AssignedTo: bugs@httpd.apache.org ReportedBy: flynnj@cs.fiu.edu This is an odd one, so I'll try to explain it as best as possible. We're running Apache 2.0.49 on linux with Symlinksifownermatch turned on for public_html directories. However, when you try to access a file in someone's webspace through a symlink, even though the owners match, a 403 forbidden is thrown with this in the error log: [Thu Jun 17 11:51:55 2004] [error] [client 131.94.133.26] Symbolic link not allowed: /home/vixen2/flynnj/public_html/link.html Now, if there is an .htaccess file in the public_html directory, containing ONLY the following: ErrorDocument 404 /~flynnj/404.html ...suddenly symlinks are followed correctly! It even does the owner check; if the symlink is owned by root, I get a 403 forbidden. Also, the 403 forbidden generated by this seems to behave differently than a normal 403 forbidden, in that it complains about an "additional 403 forbidden" accessing the ErrorDocument, which appears just fine when the 403 occurs due to another reason, such as an unreadable file. There are no other ErrorDocument declarations in the httpd.conf, so I'm not sure where this could be coming from. I can clarify and/or provide more information if required. Virtualhost with the problem: ServerName www.cs.fiu.edu ServerAlias www.cs.fiu.edu ServerAdmin webmaster@cs.fiu.edu DocumentRoot /depot/http/www.cs.fiu.edu/data ErrorLog /depot/http/www.cs.fiu.edu/logs/error_log.apache2 ErrorDocument 500 /errors/500.html ErrorDocument 403 /errors/403.html ErrorDocument 404 /errors/404.html ReadmeName README HeaderName HEADER TransferLog /depot/http/www.cs.fiu.edu/logs/access_log.apache2 CustomLog /depot/http/www.cs.fiu.edu/logs/referer_log.apache2 referer CustomLog /depot/http/www.cs.fiu.edu/logs/agent_log.apache2 agent CustomLog /depot/http/www.cs.fiu.edu/logs/combined_access_log.apache2 combined ScriptLog /depot/http/www.cs.fiu.edu/logs/cgi.log.apache2 ScriptAlias /cgi-bin/ /depot/http/www.cs.fiu.edu/cgi-bin/ Alias /icons/ "/depot/http/icons/" Directory declaration for home directories: AllowOverride AuthConfig FileInfo Limit Indexes Options +SymLinksIfOwnerMatch Indexes Includes +ExecCGI php_admin_flag safe_mode on --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org For additional commands, e-mail: bugs-help@httpd.apache.org