Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
other
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Sep 2010 at 17:08 UTC
Updated:
29 Jul 2014 at 19:03 UTC
Jump to comment: Most recent file
Comments
Comment #1
damien tournoud commentedThat's probably because of Apache Multiviews feature. We have a file named
web.configfor IIS, and Apache is servingwebas a shorthand forweb.config.Can you try adding
Options -Multiviewsto your.htaccessor your Apache VirtualHost configuration?Comment #2
mathroc commentedthat's it!
serving /web with response 200 :)
Comment #3
AnalogFile commentedI do not think this change will be accepted. But I'm too new to Drupal to judge it.
Let's see what others think.
Comment #4
damien tournoud commentedActually, I think it makes sense to disable Multiview by default. We just don't need it in Drupal, and it can make more harm then good.
Comment #6
AnalogFile commentedThat patch was too old.
Try this.
Comment #7
dmitrig01 commentedvery slight documentation fix (adding a period at the end, switching the grammar)
Comment #8
Stevel commentedThis doesn't hurt anyone, and makes /web (and any other file-like url alias) work when MultiViews is enabled in the apache config files.
Comment #9
dries commentedCommitted to CVS HEAD. Thanks.
Comment #10
ahaarnos commentedThe addition of Options -MultiViews to the .htaccess file with the D7 RC1 release is now causing Apache to choke on that line and cause 500 Internal Server Error for my D7 site (none of the other Options -Indexes, etc. lines cause this kind of error).
My server is running Apache with mod_negotiate compiled in, so the multiviews option should be available but for some reason it is not allowed to be adjusted in the .htaccess file.
I suggest this addition be reviewed and further tested, since it can obviously cause problems for some Apache configurations, and this Multiviews/cleanURLs issue has been around as long as I've been using Drupal.
Comment #11
amc commentedComment #12
catchThe need review status is for issues that have active patches to review, that's not the case here.
Comment #13
catchRe-titling.
Comment #14
chx commentedThere is no mod_negotiate. If you mean mod_negotiation which I presume you do then Apache documentation says that
it does not say disabling MultiViews causes havoc, in fact it sounds like it totally should work. If it does not, we need your Apache configuration and version. Also note that we are not getting HTTP 500 bug reports by the hundreds even after release so I am downgrading this.
Comment #15
boombatower commentedThis breaks it on my default LAMP stack...based on reading the option only works if multiviews is enabled...would highly prefer this was removed...currently patching my d7 installs.
Comment #16
boombatower commented- http://mathiasbynens.be/notes/apache-allowoverride-all
The above fixed the problem for me...I had been just applying this patch, but gets old real fast after setting up a number of instances.
Having such an a-typical configuration requirement is just silly. Based on some other comments it sounds like this only occurs on Apache 2.2 and later which could be the reason we haven't gotten many reports. I don't know what generally is the accepted version, but seems new enough that plenty of hosts may not use it...
Either way can we please get rid of this.
Comment #17
dawehnerPerhaps it would be good to document this setting in the .htaccess but disable it by default.
Comment #18
dawehnerUpdate status
Comment #19
ahaarnos commentedboombatower is exactly right about the Apache config issue (http://drupal.org/node/919596#comment-4061664). We don't have MultiViews enabled in my organization's Apache configurations anyways, but since AllowOverride ALL doesn't include MultiViews (which is stated all over the Apache 2.2 documentation), trying to disable it via .htaccess leads to 500 errors if you're not allowed to override that setting.
I haven't found any sort of conditional way to set an Apache option in .htaccess ONLY IF you have the right to, so I'd consider any default .htaccess that tries to change a setting specifically excluded from the All options set in Apache to be a bad idea.
Comment #20
boombatower commentedShould probably commit to 8.x and backport?
Comment #21
dries commentedCommitted to 8.x. Moving to 8.x. for webchick to consider.
Comment #22
damien tournoud commentedThis is very weird. Why is this happening only to some people? None of our test bots have this issue, and I never seen
AllowOverride Allnot sufficient to disable multiview. Maybe it only work silently when the multiview is not already on, ie. when the directive actually has no effect?Comment #23
David_Rothstein commentedIt looks like this was actually committed to 7.x already, but not to 8.x:
http://drupalcode.org/project/drupal.git/commit/26d9d42
Comment #24
dries commented@DamZ: yeah, it's weird but apparently it fixes the problem, and keeps the tests bots happy.
@David: thanks for catching that -- I don't know how you do it ... :) Committed the patch to 8.x too.