Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

How to enable Server Side Includes (SSI) ?

Answer:

Pick either one of the following method and add the following lines to Apache configuration (httpd.conf).

1. Enable SSI on files with extension .shtml

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

2. Enable SSI on files if they have the user-execute bit set

XBitHack on

Reference: http://httpd.apache.org/docs/1.3/mod/mod_include.html

  1. Enable Server Side Includes in Apache
  2. Disable X-Powered-By and Server headers in Apache/PHP
  3. Turn on expire headers in Apache
  4. Apache restart explained
  5. How to enable / disable service during startup in Fedora?

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>