Apache HTTP Server Version 2.4
Description: | Server-parsed html documents (Server Side Includes) |
---|---|
Status: | Base |
Module Identifier: | include_module |
Source File: | mod_include.c |
This module provides a filter which will process files before they are sent to the client. The processing is controlled by specially formatted SGML comments, referred to as elements. These elements allow conditional text, the inclusion of other files or programs, as well as the setting and printing of environment variables.
Server Side Includes are implemented by the
INCLUDES
filter. If
documents containing server-side include directives are given
the extension .shtml, the following directives will make Apache
parse them and assign the resulting document the mime type of
text/html
:
AddType text/html .shtml AddOutputFilter INCLUDES .shtml
The following directive must be given for the directories
containing the shtml files (typically in a
<Directory>
section,
but this directive is also valid in .htaccess
files if
AllowOverride
Options
is set):
Options +Includes
For backwards compatibility, the server-parsed