CentosのhttpのSSIの問題

CentosのhttpのSSIの問題

私の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>

私の現在の構成で。

おすすめ記事