Tuesday, December 13, 2005

Apache: configure SSI - server side includes

1) add following lines to httpd.conf
AddType text/html .shtml
AddHandler server-parsed .shtml

2) modify options line in Document root to add Includes
Options Indexes FollowSymLinks +Includes

3) optionally turn on XBitHack
XBitHack On
and chmod 744 filename

4) alternatively you can create .htaccess file under a given directory and add
AddType text/html .shtml
AddHandler server-parsed .shtml
Options Indexes FollowSymLinks Includes

0 Comments:

Post a Comment

<< Home