![Apache2 웹 서버(Debian)에서 XBitHack을 활성화하는 방법은 무엇입니까?](https://linux55.com/image/185689/Apache2%20%EC%9B%B9%20%EC%84%9C%EB%B2%84(Debian)%EC%97%90%EC%84%9C%20XBitHack%EC%9D%84%20%ED%99%9C%EC%84%B1%ED%99%94%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F.png)
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