Chinaunix首页 | 论坛 | 博客
  • 博客访问: 898922
  • 博文数量: 1812
  • 博客积分: 90800
  • 博客等级: 元帅
  • 技术积分: 22390
  • 用 户 组: 普通用户
  • 注册时间: 2008-05-03 18:35
文章分类

全部博文(1812)

文章存档

2008年(1812)

我的朋友

分类:

2008-05-03 20:11:45

技术文章

如何在PHP APAHCHE MYSQL环境下使用服务器端包含SSI?如果可以是不是配置好之后的页面后缀就是 .shtml呢?

不是,要让服务器支持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"

# doesn't give it to you.

#

    Options Includes FollowSymLinks MultiViews

#	 ~~~~~~~~ <= INCLUDES 启动shtml脚本中用

#

# 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

如何在PHP APAHCHE MYSQL环境下使用服务器端包含SSI?如果可以是不是配置好之后的页面后缀就是 .shtml呢?

不是,要让服务器支持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"

# doesn't give it to you.

#

    Options Includes FollowSymLinks MultiViews

#	 ~~~~~~~~ <= INCLUDES 启动shtml脚本中用

#

# 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

技术文章 如何让PHP APAHCHE支持SSI?如何让PHP APAHCHE支持SSI?如何让PHP APAHCHE支持SSI?如何让PHP APAHCHE支持SSI?如何让PHP APAHCHE支持SSI?如何让PHP APAHCHE支持SSI?如何让PHP APAHCHE支持SSI?如何让PHP APAHCHE支持SSI?如何让PHP APAHCHE支持SSI?如何让PHP APAHCHE支持SSI?如何让PHP APAHCHE支持SSI?如何让PHP APAHCHE支持SSI?
阅读(167) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~