站长论坛

标题: 如何使你的Apache服务器支持SSI? [打印本页]

作者: tznktg    时间: 2009-1-2 16:32
标题: 如何使你的Apache服务器支持SSI?
如何使你的Apache服务器支持SSI?
Apache(如何在windows以及linuc下安装apache请参见另两篇文章)默认是不支持SSI的,需要我们更改httpd.conf来进行配置。我这里以windows平台的Apache 2.0.x为例(在linux平台下与之相同),打开conf目录下的httpd.conf文件,搜索“AddType text/html.shtml”,找到:

# AddType text/html .shtml
# AddOutputFilter INCLUDES .shtml

把这两行前面的#去掉 。
备注:最重要的是这一行 # AddOutputFilter INCLUDES .shtml  

然后搜索“Options Indexes FollowSymLinks”
在搜索到的那一行后面添加“ Includes”
即将该行改变为 Options Indexes FollowSymLinks Includes

熟悉apache manual的可能会觉得比较容易。
保存httpd.conf,重起apache即可
到此我们就完成了对Apache SSI的设置。




欢迎光临 站长论坛 (https://tzlink.com/bbs/) Powered by Discuz! X3.2