Tunning Ubuntu SSI configuration

How to configure SSI for Ubuntu

 Date 21 June 2009

creates this symboliclink:

sudo ln -s /etc/apache2/mods-available/include.load /etc/apache2/mods-enabled

Open your default file in etc/apache2/sites-enabled/default

Edit it and add +Includes and this two lines

AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

The file should be like this:

    ServerAdmin webmaster@localhost

    DocumentRoot /var/www
        Options FollowSymLinks
        AllowOverride None

        Options Indexes FollowSymLinks MultiViews +Includes
        AllowOverride None
        Order allow,deny
        allow from all
            AddType text/html .shtml
            AddOutputFilter INCLUDES .shtml

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all

    ErrorLog /var/log/apache2/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /var/log/apache2/access.log combined

    Alias /doc/ "/usr/share/doc/"
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from ::1/128

restart apache: sudo /etc/init.d/apache2 restart