EverettLindsay.DeleteThis@gmail.com wrote:
> But first, I need to enable the httpd.config file to recognize
> ..htaccess files. The httpd.config file starts like this:
>
> <Directory "/www/webroot">
> Order allow,deny
> AllowOverride none
> Allow from all
> </Directory>
>
> When I change it to this:
>
> <Directory "/www/webroot">
> Order allow,deny
> AllowOverride Options
> Allow from all
> </Directory>
You must also set FileInfo to the AllowOverride directive to use AddType
and AddOutputFilter in a .htaccess file:
AllowOverride Options FileInfo
> it stops working. My understanding was that if I did this, then
> created a file named .htaccess in the /www/webroot directory which
> said:
>
> Options +Includes
>
> AddType text/html .shtml
> AddOutputFilter INCLUDES .shtml
Why don't you add this inside your <Directory "/www/webroot">-Container
and leave AllowOverride None? This wold be better in the aspect of
performance issues.
<Directory "/www/webroot">
Order allow,deny
Options +Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
</Directory>
> --that I would enable SSI for all files with the .shtml extension in my
> webroot. However, when I restart the server and reload my page, I
> receive an "Internal Server Error."
I think it's from the missing AllowOverride FileInfo.
>> Stay informed about: SSI