Apache2 웹 서버(Debian)에서 XBitHack을 활성화하는 방법은 무엇입니까?

Apache2 웹 서버(Debian)에서 XBitHack을 활성화하는 방법은 무엇입니까?

Debian 10에서 실행되는 Apache2 웹 서버에서 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이 지시어를 한 줄로 결합 할 수도 있습니다 .

Options Indexes FollowSymLinks Includes

관련 정보