Apache默认不支持ssi,需要修改httpd.conf文件
1、查找
#AddType text/html .shtml
#AddHandler server-parsed .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 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
# 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
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
3、保存httpd.conf修改,重起apache