Apache中ssi的配置方法

来源:互联网 发布:软件测试工资待遇上海 编辑:程序博客网 时间:2024/05/22 03:05
Apache默认不支持ssi,需要修改httpd.conf文件
1、查找
#AddType text/html .shtml
#AddHandler server-parsed .shtml

将前边的#注释符去掉
 
2、查找
<Directory "d:/APM_Setup/htdocs"> </Directory>
这里是网站根目录设置选项,(路径会有所不同)
Option 选项后加 Includes
例如:
<Directory "d:/APM_Setup/htdocs">
#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
    Options FollowSymLinks MultiViews ExecCGI Includes
#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
    AllowOverride None
#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all
</Directory>

3、保存httpd.conf修改,重起apache
原创粉丝点击