【发布时间】:2019-09-27 22:47:58
【问题描述】:
我有 ssi 在 InMotionHosting 上工作,但无法让它在本地 Centros 7 安装上工作。 Apache 2.4.6 版
httpd -M 显示 so_module 已加载,但 mod_include 未加载。
当我尝试添加 mod_include 时出现错误:
httpd: Syntax error on line 55 of /etc/httpd/conf/httpd.conf: Can't locate API module structuremod_include' 在文件 /etc/httpd/modules/mod_include.so 中:/etc/httpd/modules/mod_include.so:未定义符号:mod_include'
我尝试修改httpd.conf文件:
<Directory "/var/www/html">
Options Indexes FollowSymLinks
Options +Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
SSI 仍然失败。
索引文件很简单:
<h1>Test page</h1>
/var/www/index.html
<br/>
<!--#echo var="DATE_LOCAL" -->
<!--#include virtual="./insert.shtml" -->
我错过了什么?
【问题讨论】: