.shtml not being served by apache.

Jason Stephenson jason at sigio.com
Tue Jul 6 18:19:00 EDT 2004


Travis Roy wrote:
> I have this in my httpd.conf file:
> 
> # 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.)
> #
> AddOutputFilter INCLUDES .shtml


I also have this in my httpd.conf:

AddInputFilter INCLUDES .shtml

I had to add an input filter as well to get something that I was doing 
to work properly. I forget now exactly what.

The above works with Apache 2.0.x, but not 1.3.x. It looks like your 
config is for 1.3.x.

> 
> 
> Jason wrote:
> 
>> All,
>> Running RH 9.0 - Apache
>>
>> I can't seem to get apache to serve up any pages with ssi. This 
>> includes php
>> and shtml. I googled and found several solutions saying uncomment  the
>> following in the httpd.conf file:
>>
>>         AddType text/html .shtml
>>         AddHandler server-parsed .shtml
>>
>>  but neither of these is found when I grep httpd.conf. So I added the
>> following to httpd.conf:
>>
>> <Directory /var/www/html/sitedirectory>
>>     Options Includes
>>     AddType text/html .htm
>>     AddHandler server-parsed .htm
>> </Directory>
>>
>>  I also built a .htaccess file with:
>>
>>     XBitHack on
>> and did a
>>     chmod +x file.htm
>>
>> to see if I could get them to execute... no go!
>>
>> Next I added the following to the .htaccess file:
>>
>>         AddType text/html .shtml
>>         AddHandler server-parsed .shtml
>>       XBitHack on

Generally, one uses either XBitHack or the AddType/AddHandler pair.

You do have mod_includes in the httpd, either compiled in or loading 
dynamically? I believe it comes with a vanilla Apache configuration, but 
I don't know if RH 9.0 includes it in the RPM or not. IIRC, there were 
often separate RPMs for some of the apache modules. You can run httpd -l 
to see what modules are compiled into your server. If mod_includes isn't 
one of them, then you'll need to see that it's in your libexec directory 
  and add the appropriate lines to httpd.conf to load it.


>>
>>  and changed the file extensions to .shtml and it still didn't work.
>>
>> Any suggestions? Next stop brick wall!
>>
>>
>>
>> Jason Kern
>>
>> www.KernBuilt.com
>> 603.823.5150
>>
>>
>> _______________________________________________
>> gnhlug-discuss mailing list
>> gnhlug-discuss at mail.gnhlug.org
>> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss
> 
> 
> _______________________________________________
> gnhlug-discuss mailing list
> gnhlug-discuss at mail.gnhlug.org
> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss
> 




More information about the gnhlug-discuss mailing list