Configure SSI stenographer for Apache

Source: Internet
Author: User

1. Enable the module httpd. conf
Loadmodule filter_module modules/mod_filter.so

2. Add the pair des in <DIRECTORY options configuration

Options + des

3. added the. shtml document type and set the DES

Addtype text/html. shtml

Addoutputfilter between des. shtml

4. Step 3 is the duplicate name file. It also means that only the include and other commands in the file ending with .shtml will be processed by Apache. If you do not want to rename the command, you can set xbithack.

Xbithack on

Chmod + x pagename.html

If Step 1 is set, you do not need to set step 2, that is, as long as the include and other commands in the file with the execution permission are processed by Apache

Generally contains file commands

<! -- # Include file = "ssi_top_head.php" -->

Appendix: Apache SSI official documentation:

Http://httpd.apache.org/docs/2.2/howto/ssi.html

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.