Print this article Edit this article

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

ECN's Apache web server wilbur 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: Dec 19, 2016 11:12 am US/Eastern
Created: Jul 28, 2008 2:12 pm GMT-4 by admin
JumpURL:


Categories