On Thu, Apr 09, 2009 at 02:24:56PM +0100, Chris G wrote:
Well I've found out how to turn this behaviour on and off but I'm none the wiser as to why it happens. The page above:-
http://home.isbd.net/manual/en/mod/core.html
Is (of course) one of the apache documentation manual pages. There's a file in /etc/apache2/conf.d to set configuration for this, as follows:-
Alias /manual /usr/share/doc/apache2-doc/manual/ <Directory "/usr/share/doc/apache2-doc/manual/"> Options Indexes FollowSymlinks AllowOverride None Order allow,deny Allow from all AddDefaultCharset off </Directory>
If I remove the Options line and restart apache then the URL without the .html on the end works. Putting *any* Options line back stops the URL without the trailing .html from working. Even adding "Options All" which is supposed to be the default switches the behaviour.
I'm still confused! :-)
I actually started looking at this because I want to do some playing about with filters with filter actions being changed by file suffixes and need to understand what's going on above (and what drives it).
Silly me, read the apache manual again! The section for "Options All" says:-
All All options except for MultiViews. This is the default setting.
... and it's MultiViews that turns the behaviour I'm seeing on and off. It sort of makes sense now, turning MultiViews on means "where the server does an implicit filename pattern match, and choose from amongst the results."
Back to reading the documentation! :-)