Home Contact Us Search

[ Order a Server ] [ Server Support ]


[ Getting Started ] [ Server Help ] [ Add on Help ] [ Solution ] [ Trouble Shooting ]

PLEASE NOTE, THIS IS VERY OLD ARCHIVE INFORMATION AND MAY NOT FUNCTION ON NEW SERVERS

[ DNS ] [ Email ] [ Server Admin ] [ Web Server ]

Allowing Server Side Includes in Any Directory

To allow server side includes (SSI) in any directory do the following:

  1. Uncomment out the following "AddType" directive in the ~/www/conf/httpd.conf file on your Virtual Server to designate that all .shtml files be parsed by the web server for server side includes:
    AddType text/html .shtml
    AddHandler server-parsed .shtml
    
    If you also want .html and .htm files to be parsed for server side includes, add the following lines:
    AddHandler server-parsed .html
    AddHandler server-parsed .htm
    

    NOTE: If your Virtual Server was configured before Dec 8, 1998 you should instead uncomment out the following AddType directive in the ~/www/conf/srm.conf file to designate that all .shtml files be parsed by the web server for server side includes:

    AddType text/x-server-parsed-html .shtml 
    

    If you also want .html and .htm files to be parsed for server side includes, add the following lines:

    
    AddType text/x-server-parsed-html .html 
    AddType text/x-server-parsed-html .htm
    

  2. Add an Includes option to the Options for your Root Document declaration (<Directory /usr/local/etc/httpd/htdocs>) in the ~/www/conf/httpd.conf file:
    Options Indexes FollowSymLinks Includes

    NOTE: If your Virtual Server was configured before Dec 8, 1998 you will need to make this change in the ~/www/conf/access.conf file instead.

  3. Restart your web server:
    % restart_apache
    
  4. An alternate way of doing this is uploading a simple .htaccess file with this information:
    Options Indexes FollowSymLinks Includes
    AddType text/x-server-parsed-html .html
    AddType text/x-server-parsed-html .htm
    
    Please note, if you are running FrontPage2000 server extensions, you will
    need to modify the "existing" .htaccess file.  If you overwrite your existing
    FrontPage2000 .htaccess file, your extensions will no longer work! Careful!!
    See examples of code to insert on pages
    
    

[ DNS ] [ Email ] [ Server Admin ] [ Web Server ]

PLEASE NOTE, THIS IS OLD ARCHIVE INFORMATION AND MAY NOT FUNCTION ON NEW SERVERS