apache   关于支持SSI   设置问题.

apache   关于支持SSI   设置问题.

Server version: Apache/2.0.52
Server built:  Jan 30 2007 09:56:53

功能说明:要能支持SSI .
在HTML 页面中,增加以下代码:
<!--//ssi head -->
<!--#include virtual="/script/header6.ssi" -->
<!--ssi head end-->


设置:
在httpd.conf 中,增加了以下代码:
#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
#modify by tang 20081106


<VirtualHost map.test.net:80>
    ServerAdmin tang@gmail.com
    DocumentRoot /www/map/
    ServerName map.test.net
    ErrorLog logs/map.test.net-error_log
    CustomLog logs/map.test.net-access_log common

  AddType text/.html .shtml
  AddOutputFilter INCLUDES .shtml
</VirtualHost>

但是,页面显示时,就是不能显示增加的  header6.ssi 相关内容.

后加以下代码解决.

<Directory "/www/map/">

    AddType text/html .html .htm
    AddHandler server-parsed .shtml .html .htm
    AddHandler cgi-script cgi
    Options Indexes MultiViews ExecCGI Includes
    AllowOverride None
    Order allow,deny
    Allow from all

</Directory>