Apache2, Debian and SSI

Kevin Cozens kcozens-qazKcTl6WRFWk0Htik3J/w at public.gmane.org
Mon Feb 27 17:29:54 UTC 2006


Madison Kelly wrote:
>   Thanks for the link, that helped clear things up but I still seem to 
> be plum out of luck. I can't even generate an error message. In the main 
> 'apache2.conf' there is:
> 
> <FilesMatch "\.shtml(\..+)?$">
>     SetOutputFilter INCLUDES
> </FilesMatch>
> 
>   Which I have tried using directly in mu VH container without luck. I 
> tried the line you gave me in both places, too. Likewise, I tried the 
> XBitHack (threw an error) and the:
> 
>  AddType text/html .shtml
> AddOutputFilter INCLUDES .shtml
> 
>   in both places as well.

One thing that can help is to look at the stock commented httpd.conf file that 
comes with Apache (ie. httpd.conf.dist). The file should have the following lines:

AddIcon /icons/layout.gif .html .shtml .htm .pdf

#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml


All of the above are in the stock httpd.conf file and are not in a 
configuration block for a specific virtual server. Since you also mentioned 
index.shtml, don't forget to add index.shtml as the first entry in the 
DirectoryIndex line of the .conf file.

-- 
Cheers!

Kevin.

http://www.interlog.com/~kcozens/ |"What are we going to do today, Borg?"
Owner of Elecraft K2 #2172        |"Same thing we always do, Pinkutus:
                                   |  Try to assimilate the world!"
#include <disclaimer/favourite>   |              -Pinkutus & the Borg
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list