본문 바로가기

IT/서버

[Apache] 아파치 Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configurationAction '-t' failed. The Apache error log may have more information.

반응형

아파치에 Header를 추가 설정해야 되는 부분이 있어서 작업을 했는데, 아파치 syntax검사를 해보니

Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configurationAction '-t' failed. The Apache error log may have more information.

에러 내용

이런 에러가 발생 함.

 

* 해결방법
sudo a2enmod headers 명령어 입력

root@test:/etc/apache2/conf-available# sudo a2enmod headers

입력 후 아래와 같이 apache2 다시 재기동하라는 메세지 발생

Enabling module headers.

To activate the new configuration, you need to run:

  systemctl restart apache2

 

apache2 재기동 후 syntax검사해보니 OK 사인 떨어진다.

반응형