配置文件中把这两行前面的#去掉。
然后搜索“Options Indexes FollowSymLinks”
在搜索到的那一行后面添加“ Includes”
即将该行改变为有些情况这样设置并不好使
错误日志提示
mod_include: Options +Includes (or IncludesNoExec) wasn't set, INCLUDES filter removed
其实还要设置访问目录 ,在Document root 的目录属性里加了后就好了保存httpd.conf,重起apache即可。
到此我们就完成了对Apache SSI的设置。
文章出处:标准之路(http://www.aa25.cn/Tech/842.shtml)
- # AddType text/html .shtml
- # AddOutputFilter INCLUDES .shtml
然后搜索“Options Indexes FollowSymLinks”
在搜索到的那一行后面添加“ Includes”
即将该行改变为
- Options Indexes FollowSymLinks Includes
错误日志提示
mod_include: Options +Includes (or IncludesNoExec) wasn't set, INCLUDES filter removed
其实还要设置访问目录 ,在Document root 的目录属性里加了后就好了
- Options FollowSymLinks +Includes
- # Options Indexes FollowSymLinks
- AllowOverride None
- Order allow,deny
- Allow from all
到此我们就完成了对Apache SSI的设置。
文章出处:标准之路(http://www.aa25.cn/Tech/842.shtml)
编辑回复