Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #10812: htaccess Options override #11327

Merged
merged 1 commit into from
Oct 11, 2017
Merged

Fix #10812: htaccess Options override #11327

merged 1 commit into from
Oct 11, 2017

Conversation

dverkade
Copy link
Member

@dverkade dverkade commented Oct 10, 2017

Fix for isse Fix #10812.

The Apache documentation for the Options Directive mentions the following:

Warning
Mixing Options with a + or - with those without is not valid syntax and is likely to cause unexpected results.

http://httpd.apache.org/docs/2.2/mod/core.html#options

So occording to the documentation "Options All -Indexes" is not valid syntax. Removed the option "All" from the .htaccess file. This is the default option. We only want to make sure that the Indexes option is not present, so that Apache will not return a list of files in the directory. The ExecCGI option will be disabled by the .htaccess as well. The FollowSymLinks option will be set automatically when the mod_rewrite module is found. As far is I can see there is no need to set or unset the other options in the Options Directive, so it's safe to remove the option All from the .htaccess files.

- Removed options All from .htaccess. All is the default option.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants