Apache2 Webサーバー(Debian)でXBitHackを有効にする方法は?

Apache2 Webサーバー(Debian)でXBitHackを有効にする方法は?

Debian 10で実行されているApache2 WebサーバーでXBitHackを有効にしようとしています。私が入力した内容は次のとおりです/etc/apache2/apache2.conf

<Directory /srv/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Options +Includes
        AddType text/html .shtml
        AddHandler server-parsed .shtml
        XBitHack on
        Require all granted
</Directory>

systemdを再起動した後、apache2.service私は次のような言葉を聞きました。

AH00526: Syntax error on line 182 of /etc/apache2/apache2.conf:
Invalid command 'XBitHack', perhaps misspelled or defined by a module not included in the server configuration
Action 'start' failed.

私はここで行方不明か何か間違っていますか?

ベストアンサー1

有効にする必要があります。mod_includeあなたのサーバーから。

走る

sudo a2enmod include

ディレクトリinclude.loadにSymlinkを接続し、サーバーを再起動します。/etc/apache2/mods-available/etc/apache2/mods-enabled

Optionsこのディレクティブを1行にまとめることもできます。

Options Indexes FollowSymLinks Includes

おすすめ記事