Web Hosting Talk







View Full Version : how can I set "AllowOverride Options" to on ?


TOPRPM
06-01-2002, 12:54 AM
hi,

how can I set "AllowOverride Options" to on on Linux apache server "Ensim" ??

I want to do this because I want to use SSI in my server

xerocity.com
06-01-2002, 05:11 PM
I dont know the exact specifics about ensim but you will probably need to change you httpd.conf file and include this

<Directory /path/to/your/dir/>
Options ExecCGI Includes FollowSymLinks
AddType text/x-server-parsed-html .htm
AddType application/x-httpd-cgi .pl
AllowOverride All
</Directory>

It is actally the "Includes" that activates the SSI and "AddType text/x-server-parsed-html .htm" tells the server to parse files with a .htm extension. If using a different extension, .html for example you would replace the .htm with .html.

Hope this helps.

webx
06-03-2002, 01:41 AM
Check these directives in httpd.conf

#AddType text/html .shtml
#AddHandler server-parsed .shtml

they should be uncommented. Plus as xerocity.com said, Options line should have Includes.

Here's a nice tutorial on SSI: http://www.apacheweek.com/features/ssi