我的httpd.conf如下。
- - -
AddType text/html .shtml .html
Options +Includes
AddOutputFilter INCLUDES .shtml .html
DirectoryIndex index.shtml index.html index.php index.html.var
- - -
并且仍然在调试日志中显示选项+包含未设置。
[Thu Aug 14 01:14:26 2014] [warn] [client xxx.xxx.xxx.xxx] mod_include:
Options +Includes (or IncludesNoExec) wasn't set, INCLUDES filter removed.
我的 apache 版本是 2.2 & 运行在 Centos 6 上。
任何建议如何解决这个问题。
答案1
找到了修复方法。
使用虚拟主机配置来解决问题:
<Directory "/var/www/html">
Options Indexes MultiViews Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/
ServerName dummy-host.example.com
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
与我当前的配置。