SSI, XBitHack,... I can't get server side includes working

Discussion in 'Apache' started by tony ennis, Aug 22, 2009.

  1. #1
    I want to use the XBitHack technique to get server side includes working. That is, I do not want t rename my files to *.shtml etc. I have spent hours reading Apache docs but I can't make any progress at all. I'm at wit's end.

    No matter what I do, I get the following error in my log. I do not understand what it means:

    [Sun Aug 23 00:21:39 2009] [warn] [client ::1] mod_include: Options +Includes (or IncludesNoExec) wasn't set, INCLUDES filter removed
    Code (markup):
    Here is my virtual host section:

    
    NameVirtualHost *:80
    
    <VirtualHost *:80>
        ServerAdmin me@admin.com
        DocumentRoot "/usr/local/apache2/htdocs/hdq.com"
        ServerName hdq.com
        ServerAlias www.hdq.com
        ErrorLog "logs/hdq.com-error_log"
        CustomLog "logs/hdq.com-access_log" common
    
    <Directory / >
        XBitHack full
        AllowOverride None
        Order deny,allow
        Deny from all
        Options +Includes
    </Directory>
    
    </VirtualHost>
    Code (markup):
    I've tried about a million different things. But nothing I try has any effect what-so-ever. I'm serving my pages but the SSI instructions (currently, only ) aren't being processed. apachectl reports the lib_include module is present.

    My html file looks like:

    <html>
    <head>    
        </head><body>
            hey man
            <p>
                <!--#echo var="DOCUMENT_NAME" -->
                <!--#printenv -->
            </p>
        </body>
    </html>
    Code (markup):
    In addition, I tried adding a .htaccess file but it also had no effect:

    XBitHack full
    AddType text/html .html
    AddHandler server-parsed .html
    Options Indexes FollowSymLinks Includes
    Code (markup):
    Any bones you could throw me would be appreciated.
     
    tony ennis, Aug 22, 2009 IP