Closed
Bug 273769
Opened 20 years ago
Closed 20 years ago
SSI + MultiViews doesn't work
Categories
(mozilla.org Graveyard :: Server Operations, task)
mozilla.org Graveyard
Server Operations
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.
Comment 1•20 years ago
|
||
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>
Comment 2•20 years ago
|
||
Sorry, wrong command, you want SetHandler, not ForceType. Try this one: <FilesMatch ^index\.html$> SetHandler server-parsed </FilesMatch>
Comment 3•20 years ago
|
||
and if you have different language versions, fix the regexp to match what the files are actually called :)
| Reporter | ||
Comment 4•20 years ago
|
||
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.
Comment 5•20 years ago
|
||
fixed by adding "AddType text/html .shtml" to the .htaccess file.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Product: mozilla.org → mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•