Apache support include file parsing shtml First you should modify the Apache configuration file httpd.conf
1. Confirm loading the Include.so module and remove the annotation:
Copy Code code as follows:
LoadModule Include_module libexec/apache2/mod_include.so
2. The AddType section removes these two paragraphs of annotations:
Copy Code code as follows:
AddType text/html. shtml
Addoutputfilter INCLUDES. shtml
3. Directory directory permissions found inside
Copy Code code as follows:
Options Indexes FollowSymLinks
Add includes modifications to:
Copy Code code as follows:
Options Indexes followsymlinks Includes
4. Restart Apache, test:
Copy Code code as follows:
<!– #include file= "head.html" –>
Holle word!, this is the middle of the content
<!– #include file= "foot.html" –>
The above mentioned is the entire content of this article, I hope to configure Apache can help.