SSI doesn't work on local server

Discussion in 'Apache' started by larry2, Jul 18, 2008.

  1. #1
    I've installed Apache on my local Win XP machine to view sites before taking them live. They're set-up as virtual hosts, with site definitions in both etc\hosts and httpd.conf. This works fine except my pages all use SSI's and the SSI content doesn't display (everything else displays as expected), with no error messages.

    In httpd.conf, I've configured the following:

    Options +Includes
    LoadModule include_module modules/mod_include.so
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml

    In addition, because my pages all use a .html suffix instead of .shtml, each site has a .htaccess with the following:

    AddHandler server-parsed .html

    Finally, all my SSI references are aboslute to site root rather than relative:

    <!--#include virtual="/includes/footer.html" -->

    Any thoughts as to why this set-up doesn't work on my local server but does on the online server?

    Thanks!

    Larry
     
    larry2, Jul 18, 2008 IP