Bug 58602

Summary: Priority issue on DirectoryMatch directive
Product: Apache httpd-2 Reporter: SSW <S-sword>
Component: CoreAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 2.4.17   
Target Milestone: ---   
Hardware: PC   
OS: Windows NT   

Description SSW 2015-11-11 16:49:59 UTC
In Apache 2.4.17, the priorities of DirectoryMatch directives are determined by the number of slashes (/) in the argument (core.c: dirsection function), but in the case of arguments like ^/[^/]+/a, the number of slashes are over counted and the case have larger priority than the case of same directory depth like ^/b/a. 
I think it is not appropriate to determine the priorities of DirectoryMatch directives (or should be determined by simply its order).
Comment 1 Eric Covener 2015-11-11 17:54:13 UTC
analysis looks right to me, and impl on the surface seems to conflict with how sections.html describes the merge.