Server Side Includes (SSI) on ECN's Apache (Charlotte)

ECN's Apache web server charlotte supports server side includes, though they are not enabled by default. The following lines must be added to a .htaccess file in the web site where you would like to enable includes:

Options +Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

This option can be turned on for any extension by changing .shtml in the lines above.

Once Includes are enabled you can use them to include one file into another file, this is useful for creating site templates. The line below will include the /~user/header.html file into the current file.

<!--#include virtual="/~user/header.html" -->

For more information on server side includes please read the mod_include documentation

Last modified: 2008/07/28 14:18:32.230000 GMT-4 by brian.r.brinegar.1
Created: 2008/07/28 14:12:12.168000 GMT-4 by brian.r.brinegar.1.

Categories

Search

Type in a few keywords describing what information you are looking for in the text box below.

Admin Options: Edit this Document