Bug 50926 - unexpected <Directory> file-matching behavior
Summary: unexpected <Directory> file-matching behavior
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.5-HEAD
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
Depends on:
Reported: 2011-03-14 08:15 UTC by Eric Covener
Modified: 2011-03-14 08:15 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Eric Covener 2011-03-14 08:15:47 UTC
DocumentRoot /tmp/var/www

<Directory /tmp/var/www/index.html>
Require all denied

(or more subtly, a glob like /tmp/var/www/*, /tmp/var/www/ind*, or even /tmp/var/www/ind*/)

This triggers a 403 for http://localhost/index.html  The equivalent with order/allow also behaves the same way in 2.2.x.  

Should the directory walk have been able to realize that the target was a file and the last segment can't be compared with directory sectons?

Maybe something to change before 2.4 GA?  Please change to docs@ if it's as designed.