Home   |   Products   |   Order   |   Support   |   ? !1 UK Web Hosting
 

Server Side Includes
Server Side Includes (SSIs) are simple directives embedded into HTML documents that instruct a Web server to dynamically include data in the HTML document.

Configuration
To configure the Virtual Server Apache Web Server to allow server side includes in any directory, connect to your Virtual Server via Telnet or SSH and do the following:

  1. Uncomment the following AddType directive in the web server configuration file (~/www/conf/httpd.conf) 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
    

    NOTE: If your Virtual Server was configured before Dec 8, 1998 you should uncomment the following AddType directive in the ~/www/conf/srm.conf file (instead of the ~/www/conf/httpd.conf file):

    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:

    AddHandler server-parsed .html
    AddHandler server-parsed .htm
    

    NOTE: If your Virtual Server was configured before Dec 8, 1998 you should add the following AddType directives in the ~/www/conf/srm.conf file (instead of the ~/www/conf/httpd.conf file):

    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 web server configuration file (~/www/conf/httpd.conf):

    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 of the ~/www/conf/httpd.conf file):

  3. Restart Your Web Server


Site Map  |  Contact Us!
Copyright © 1998-2001 Bright Builders, Inc. All rights reserved.
Last Modified: Wed Mar 28 05:27:24 2001 GMT
Page Built: Mon Jul 2 19:59:17 2001 GMT

   
A L S O  S E E
· Web Server Configuration
· Virtual Server Help