码迷,mamicode.com
首页 > 其他好文 > 详细

Apache 配置SSI速记

时间:2014-08-19 14:11:34      阅读:205      评论:0      收藏:0      [点我收藏+]

标签:des   http   io   文件   html   htm   ad   on   

1. 启用模块 httpd.conf
LoadModule filter_module modules/mod_filter.so

2. <Directory 的Options配置中增加Includes

Options +Includes

3. 增加 .shtml文档类型,并设置INCLUDES

AddType text/html .shtml

AddOutputFilter INCLUDES .shtml

4. 第3步是需要重命名文件的,也就是说只有以.shtml结尾的文件中的include等指令才会被apache处理,如果不想重命名,可以设置XBitHack

XBitHack on

chmod +x pagename.html

设置了第4步,就不需要设置第3步,就是只要有了执行权限的文件中的include等指令都会被apache处理

一般包含文件指令

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

附apache ssi官方文档:

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

 

Apache 配置SSI速记,布布扣,bubuko.com

Apache 配置SSI速记

标签:des   http   io   文件   html   htm   ad   on   

原文地址:http://www.cnblogs.com/yjken/p/3921798.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!