To enable SSI, _mod_include must be available to Apache, and you must add +Includes to
the directory??™s Options directive either in http.conf or in .htaccess:
Options +Includes
There are then two methods for identifying a file for processing as an SSI document. The
first is to specify a file extension, traditionally .shtml, and associate a handler to process
files that end with that extension:
AddType text/html .shtml
AddHandler server-parsed .shtml
The directives may be placed in either the http.conf or a .htaccess file. When set,
Apache will process all files with the .shtml extension for SSI elements before returning
the results to the requesting client.
The second method for identifying a file is by turning on the XBitHack directive and
setting the execute permission bit on any SSI file. Again, they may be set either in .htaccess
or httpd.conf.
XBitHack on
Dynamic Content 543
26
With XBitHack turned on, Apache will parse all files that the user has permission to
execute, regardless of the file??™s extension.
Active Content Modules
If you find yourself writing a lot of CGI scripts in a particular interpreted language, it
might be beneficial to see if a module exists that integrates the language??™s interpreter with
Apache.
Pages:
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051