windows xp + apache2.x :
-----------------------------------------------------------------------------------------------------
打开conf目录下的httpd.conf文件,搜索“AddTypetext/html .shtml”,找到:
以下是引用片段: # AddType text/html .shtml # AddOutputFilter INCLUDES .shtml |
把这两行前面的#去掉 。
然后搜索“Options Indexes FollowSymLinks”
在搜索到的那一行后面添加“ Includes”
即将该行改变为 Options Indexes FollowSymLinks Includes
熟悉apache manual的可能会觉得比较容易。
保存httpd.conf,重起apache即可
到此我们就完成了对Apache SSI的设置。
要是还是不行就在如下加入Includes
<Directory />
Options Includes FollowSymLinks
AllowOverride None
</Directory>
Linux + apache 2.x :
-----------------------------------------------------------------------------------------------------