Apache中配置SSI解析

2012-08-03

  1. 加载include模块:
LoadModule include\_module modules/mod\_include.so
  1. 添加.shtml类型后缀解析:
1
2
3
4
5
6
<IfModule mime\_module>
#此处省略N行
	AddType text/html .shtml
	AddOutputFilter INCLUDES .shtml
#此处省略N行
</IfModule>
  1. 添加嵌入选项:
1
2
3
4
5
<Directory />
#此处省略N行
	Options FollowSymLinks Includes
#此处省略N行
</Directory>

s@zhso.netPay