Apache supports the parsing of shtml and include files
Today, I would like to share with you the relevant knowledge points of Apache to support shtml and include file parsing methods, with detailed content and clear logic. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.
Apache supports include file parsing shtml first you should modify the apache configuration file httpd.conf
1. Confirm that the include.so module is loaded and remove the comments:
The copy code is as follows:
Loadmodule include_module libexec/apache2/mod_include.so
2. Remove these two comments in the addtype section:
The copy code is as follows:
Addtype text/html .shtml
Addoutputfilter includes .shtml
3. Find it in the permissions of directory directory
The copy code is as follows:
Options indexes followsymlinks
Add includes and modify it to:
The copy code is as follows:
Options indexes followsymlinks includes
4. Restart apache and test:
The copy code is as follows:
Holle wordstones, this is the middle content
These are all the contents of the article "Apache supports shtml and include file parsing". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.