LoginSignup
1
0

More than 5 years have passed since last update.

SSIを使用する場合のApacheのconfファイルの設定

Last updated at Posted at 2018-02-22

Directoryディレクティブに
「Options Includes」
「AddOutputFilter INCLUDES .html」
を記述して、Apacheを再起動します。

例) Apache バージョン2.4の場合

<VirtualHost *:80>
   DocumentRoot /home/source/example.com/htdocs
   ServerName example.com
   ServerAdmin webmaster@virtual.host
   ErrorLog logs/example.error_log
   CustomLog logs/example.access_log combined

   <Directory /home/source/example.com/htdocs>
    Options Includes
    AddType text/html .html
    AllowOverride All
    Require all granted
    AddOutputFilter INCLUDES .html
   </Directory>
</VirtualHost>
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0