Closed Bug 273769 Opened 20 years ago Closed 20 years ago

SSI + MultiViews doesn't work

Categories

(mozilla.org Graveyard :: Server Operations, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: annevk, Assigned: myk)

Details

As you can see here:
<http://doctor.mozilla.org/?file=mozilla-org/html/projects/help-viewer/.htaccess>
both SSI and MultiViews are enabled:

# Options +Includes +MultiViews

According to that and my knowledge (and other people too, by the way) the
following should work:
<http://www.mozilla.org/projects/help-viewer/documentation>. However, it only
works when you add the extension.
You need to "ForceType server-parsed" on files that have SSI in them and give
them an .html suffix instead of .shtml.  The MultiViews stuff is negotiating
content-type, and "shtml" is not in the list of accepted types the browser
sends, so Apache doesn't offer it as a choice.

Stick this in the .htaccess file:

<FilesMatch ^index\.html$>
  ForceType server-parsed
</FilesMatch>
Sorry, wrong command, you want SetHandler, not ForceType.  Try this one:

<FilesMatch ^index\.html$>
  SetHandler server-parsed
</FilesMatch>

and if you have different language versions, fix the regexp to match what the
files are actually called :)
Is there a regexp or something simpler to let all files in a certain directory
(and deeper) be server side parsed? Especially for the pages where this is a
problem at the moment that would be more helpful.
fixed by adding "AddType text/html .shtml" to the .htaccess file.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Nice!

->VERIFIED
Status: RESOLVED → VERIFIED
Product: mozilla.org → mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.