dev/core#5640 explicitly disable mod_negotiation MultiViews in default Standalone apache config #31727
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
mod_negotiation MultiViews seems liable to cause problems if it is enabled. Let's explicitly disable it.
Before
After
Technical Details
I'm not sure if there are any times this could cause problems. Maybe if a host's apache config forces you to enable this option it will crash - but it is probably better to crash earlier than go through the install process to get a seemingly working site, then be unable to log in.
I found that this the default Laravel .htaccess has similar: https://github.com/laravel/laravel/blob/658a49a19e98a6059a543be7564d39dc2e6970e0/public/.htaccess#L3 ( Here
Options -Indexes
is also inside the IfModule conditional ? Maybe we should do that too? )