Home  >  Article  >  php教程  >  配置支持SSI

配置支持SSI

WBOY
WBOYOriginal
2016-06-13 12:35:57844browse

设置
SSI~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
开启设定文件并寻找以下这些文字:
  #
  # To use server-parsedHTMLfiles
  #
  #AddType text/html .shtml
  #AddHandler server-parsed .shtml
  删除AddType及AddHandler这两行指令前的#符号。AddType指令会要求服务器在传回任何附属档名
为.shtml的网页时,以 text或HTML做为传回文件的内容格式。AddHandler 则是用来指示服务器将文件内容
送交给mod_include 处理。之后,mod_include 就会判断该如何响应这样的文件。接下来,寻找以下文字:
  在这行文字及对应的 间会有一行选项行(options line)。原始的设定是:
  Options Indexes FollowSymLinks MultiViews
  在这行尾端加上Includes ,结果看起来会是这样:
  Options Indexes FollowSymLinks MultiViews Includes
  这是要求Apache在htdocs子目录里执行 server-side includes 程序。为了让这些修改生效,我们必须
重新启动服务器。在 Unix 下重新激活,执行"kill -HUP `cat /usr/local/apache/logs/httpd.pid`"。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn