Summary: | Conflicts between AllowOverride and AllowOverrideList (Manual is completely wrong!) | ||
---|---|---|---|
Product: | Apache httpd-2 | Reporter: | Tianyin Xu <tixu> |
Component: | Core | Assignee: | Apache HTTPD Bugs Mailing List <bugs> |
Status: | NEEDINFO --- | ||
Severity: | normal | CC: | tixu |
Priority: | P2 | ||
Version: | 2.4.1 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux |
Description
Tianyin Xu
2012-03-04 22:19:55 UTC
I can't reproduce this with your example config. Maybe you have another AllowOverrideList line in your config that overrides the one with AuthDBMGroupFile? And I think the code is ok: If the AllowOverride from parms->override does not match and we don't have a match from AllowOverrideList (override_list_ok), we get an error. If any of the two matches, we don't get an error. (In reply to comment #1) > I can't reproduce this with your example config. Maybe you have another > AllowOverrideList line in your config that overrides the one with > AuthDBMGroupFile? > > And I think the code is ok: If the AllowOverride from parms->override does not > match and we don't have a match from AllowOverrideList (override_list_ok), we > get an error. If any of the two matches, we don't get an error. Hi, Stefan, Thanks a lot for the response! I do not have another AllowOverride or AllowOverrideList, and I replayed it. The point here is not the AuthDBMGroupFile but the DirectoryIndex. To make the thing more clear, let me explain a bit more. (1) According to the example in AllowOverrideList http://httpd.apache.org/docs/2.4/mod/core.html#allowoverridelist The following setting should allow two things: (1) Allow the Indexes directive grouping; (2) the AuthDBMGroupFile directive which is in the AuthConfig grouping. <Directory /> AllowOverride Indexes AllowOverrideList AuthDBMGroupFile </Directory> (2) According to the description of AllowOverride: http://httpd.apache.org/docs/2.4/mod/core.html#allowoverride DirectoryIndex belongs to the Indexes grouping. So, having (1) and (2), I suppose the DirectoryIndex directive should be allowed in the .htaccess in the /. However, it is not allowed with the error message shown in the last email. This is verified by the code logic: the DirectoryIndex passed the AllowOverride checking but failed in the AllowOverrrideList checking (i.e., the code snippets I showed in the previous email). Am I right, Stefan? Or I misunderstood sth? Please let me know :-) I was not able to reproduce the behavior either. |