Mailing List Archive

[Bug 49809] DirectoryMatch never matches EOL/$, applies to subdirectories
https://issues.apache.org/bugzilla/show_bug.cgi?id=49809

Mostafa <smartgig@gigfa.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---

--- Comment #4 from Mostafa <smartgig@gigfa.com> ---
I've tested the bug in apache 2.2.22 and it has not been fixed.

Here is my config file :

======================================================
<FilesMatch ".(php)$">
deny from all
</FilesMatch>

<Directory ~ "^/home/domain/public_html/en$">
<Files "index.php">
allow from all
</Files>
</Directory>
======================================================

Expected result :
http://domain.com/en/index.php -> 200 OK
http://domain.com/en/includes/index.php -> 403 Forbidden
http://domain.com/en/hacked-shell/index.php -> 403 Forbidden

Actual result :
http://domain.com/en/index.php -> 403 Forbidden
http://domain.com/en/includes/index.php -> 403 Forbidden
http://domain.com/en/hacked-shell/index.php -> 403 Forbidden

--
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 49809] DirectoryMatch never matches EOL/$, applies to subdirectories [ In reply to ]
https://issues.apache.org/bugzilla/show_bug.cgi?id=49809

Eric Covener <covener@gmail.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |WONTFIX

--- Comment #5 from Eric Covener <covener@gmail.com> ---
This is how it has behaved for years, will not change in 2.2 and earlier as it
would/could break working config. Resolved in 2.4

--
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org