AlpineWeb Home
Search: For:   ~ Advanced Search  
  Support Home     Documentation     Knowledgebase     Help Desk     Blog 
Support Home > Hosting > VPS2/3 > Webserver > Configuration > Monday, October 06, 2008

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 Private Server Apache Web Server to allow server side includes in any directory, connect to your Virtual Private Server via SSH, su to root, and do the following:
  1. Uncomment the following AddType directive in the web server configuration file (/www/conf/httpd.conf) on your Virtual Private 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
    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/apache/htdocs>) in the web server configuration file (/www/conf/httpd.conf):
    Options Indexes FollowSymLinks Includes
  3. Restart Your Web Server


Technical Support
° Getting Started Guides
  FreeBSD
° Basic Hosting Help
° Signature Hosting Help
° VPS v1 Help
° VPS v2/3 Help
° MPS v2/3 Help
  Linux
° VPS v3 Help
° MPS v3 Help
  SaaS
° Sugar CRM
  DNS
° Domain Name Service
° Domain Registration
° Help Desk
° Knowledgebase
° Support Policies
° Disclaimer

° AlpineWeb Home
° Compare Hosting Plans
° Network Topology

° Rates & Fees
° Order Center




  Home | Site Map | Customer Backroom Copyright  ©  1997-2008  AlpineWeb Design