LoginSignup
4
4

More than 5 years have passed since last update.

CentOS 7 の Apache 2.4 で SSI を有効にする

Last updated at Posted at 2016-12-08

CentOS 7 の Apache 2.4 で SSI を有効にする

Apache モジュール mod_include で SSI (Server Side Includes) を有効にする方法です。

yum install httpd
firewall-cmd --permanent --add-service=http && firewall-cmd --reload
cat << "_EOF_" > /etc/httpd/conf.d/ssi.conf
<Directory "/var/www/html">
    Options +Includes
    AddOutputFilter INCLUDES .html
    SSILegacyExprParser on
</Directory>
_EOF_
systemctl start httpd && systemctl enable httpd

SSILegacyExprParser

Apache 2.2 以前の古い構文を利用する場合に on を設定します。

4
4
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
4
4