如何让PHP+APAHCHE支持SSI?
时间:2008-05-29 来源:剑心通明
.Qcq508 { display:none; }
如何在PHP+APAHCHE+MYSQL环境下使用服务器端包含SSI?如果可以是不是配置好之后的页面后缀就是 .shtml呢? php程序员站
不是,要让服务器支持shtml具体来说需要这几个步骤:
打开 apache的http.conf
Step 1: 找到
#AddType text/html .shtml
#AddHandler server-parsed .shtml
将前面的注释去掉
Step 2: 你需要给哪个虚拟机加上此功能,请在相应的虚拟机目录中加:
以下为引用的内容:
#
# 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" www~phperz~com
# doesn't give it to you.
#
Options Includes FollowSymLinks MultiViews
# ~~~~~~~~
相关阅读 更多 +