Localhost and Server Side Includes

Discussion in 'Apache' started by miseree, Feb 1, 2009.

  1. #1
    I have been working on a web page that uses server side includes. I am using WAMPserver on my local machine and am uploading to 1and1. I am using Dreamweaver CS4 for development. The SSI works in Dreamweaver and on any files uploaded to 1and1, however my local machine returns an error where SSI's are used ([an error occurred while processing this directive]). At first SSI's didn't work on either server, so I added the .htaccess file to the root directory with the following contents:

    AddType text/html .shtml
    AddHandler server-parsed .shtml
    Options +Includes

    Adding the .htaccess file enabled the 1and1 server to process the SSI. My local machine still will not.

    I have attached my httpd.conf file for apache.

    All of the files which I intend to use SSI have the extension of .shtml

    I am using the following syntax for calling an include:
    <!--#include virtual="/includes/header.shtml" -->

    I believe the problem lies within my httpd.conf file. I appreciate any and all input.

    Thank You
     

    Attached Files:

    miseree, Feb 1, 2009 IP