如何使你的Apache服务器支持SSI
2011-03-02 17:13
281 查看
Apache默认是不支持SSI的,需要我们更改httpd.conf来进行配置。我这里以windows平台的Apache 2.0.x为例,打开conf目录下的httpd.conf文件,搜索“AddType text/html .shtml”,搜索结果:
# AddType text/html .shtml
# AddOutputFilter INCLUDES .shtml
把这两行前面的#去掉,修改下面两行:
AddType text/html .html
AddOutputFilter INCLUDES .html .php
然后搜索“Options Indexes FollowSymLinks”
在搜索到的那一行后面添加“ Includes”
即将该行改变为 Options Indexes FollowSymLinks Includes
保存httpd.conf,重起apache即可。
到此我们就完成了对Apache SSI的设置。
注意:INCLUDES 后面是ssi文件的后缀名。。 请根据自己的情况设置。
# AddType text/html .shtml
# AddOutputFilter INCLUDES .shtml
把这两行前面的#去掉,修改下面两行:
AddType text/html .html
AddOutputFilter INCLUDES .html .php
然后搜索“Options Indexes FollowSymLinks”
在搜索到的那一行后面添加“ Includes”
即将该行改变为 Options Indexes FollowSymLinks Includes
保存httpd.conf,重起apache即可。
到此我们就完成了对Apache SSI的设置。
注意:INCLUDES 后面是ssi文件的后缀名。。 请根据自己的情况设置。
相关文章推荐
- 如何让自己的本地APACHE服务器支持.htaccess
- 如何让你的IIS服务器支持SSI
- Apache默认是不支持SSI如何给Apache增加SSI支持
- 如何让Apache和FMS视频流服务器支持微软的EFS加密文件
- 在Apache下开启SSI配置支持include shtml html和快速配置服务器
- 如何让自己的本地APACHE服务器支持.htaccess .
- 如何在Ubuntu中设置Apache Web 服务器支持 UserDir 特性
- apache服务器ssi支持配置
- 如何在apache服务器上配置ssl以支持https
- 如何用Apache分发同一个服务器上的多个应用[本人亲自实践]
- 如何使用apache在本地服务器虚拟域名来测试网站
- 服务器上传,时间超时 Apache 如何设置保持连接
- 如何配置Tomcat6支持SSI
- 如何让apache支持伪静态,让微信管家跑起来!
- apache windows下如何支持中文路径
- 如何安装php+apache 服务器
- 在Linux系统中如何设置APACHE服务器里的后台页面只允许某个IP地址访问
- 如何让apache支持asp
- 如何判断Apache服务器的工作模式
- [Apache]如何查看apache服务器的error log(错误日志)