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

[Backport to 2.1-develop] Fix #10812: htaccess Options override #12959

Merged
merged 1 commit into from
Jan 8, 2018
Merged

[Backport to 2.1-develop] Fix #10812: htaccess Options override #12959

merged 1 commit into from
Jan 8, 2018

Conversation

dverkade
Copy link
Member

@dverkade dverkade commented Jan 2, 2018

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.

Backport

This PR is a backport of: #11327

- Removed options All from .htaccess. All is the default option.
@magento-engcom-team magento-engcom-team added Fixed in 2.2.x The issue has been fixed in 2.2 release line Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release SQUASHTOBERFEST labels Jan 2, 2018
@ishakhsuvarov ishakhsuvarov self-assigned this Jan 3, 2018
@ishakhsuvarov ishakhsuvarov added this to the January 2018 milestone Jan 3, 2018
@magento-team magento-team merged commit 704960a into magento:2.1-develop Jan 8, 2018
magento-team pushed a commit that referenced this pull request Jan 8, 2018
@magento-engcom-team magento-engcom-team added Fixed in 2.1.x The issue has been fixed in 2.1 release line Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release labels Jan 8, 2018
@dverkade dverkade deleted the 2.1-htaccess-Options-override branch June 22, 2018 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community Insider: Cream community-insider-contribution Fixed in 2.1.x The issue has been fixed in 2.1 release line Fixed in 2.2.x The issue has been fixed in 2.2 release line Progress: accept Release Line: 2.1 Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants