Apache 2 다시 시작 실패

Apache 2 다시 시작 실패

메리 크리스마스!

Ubuntu 12.04 웹 서버를 설정 중입니다. 따라서 저는 Apache2와 mod_security를 ​​설치했습니다. mod_security 관련 구성을 편집했습니다. 어제 모든 것이 잘 작동했습니다.

오늘 Apache를 다시 시작하려고 하는데 다음 오류로 인해 실패합니다.

$ /etc/init.d/apache2 restart

Syntax error on line 2 of /etc/apache2/conf.d/DEADJOE:
Invalid command '***', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
   ...fail!

아파치 오류 로그를 확인했지만 syslog에서 동일한 항목을 찾을 수 없습니다. /etc/apache2/conf.d/DEADJOE의 내용은 다음과 같습니다.

*** These modified files were found in JOE when it aborted on Mon Dec 23 14:48:44 2013
*** JOE was aborted because the terminal closed

*** File '(Unnamed)'
/etc/modsecurity/modsecurity.conf
/etc/apache2/mods-available/mod-security.conf
/etc/modsecurity/modsecurity.conf
/var/log/apache2/error.log
/etc/apache2/conf.d/modsecurity.conf
/etc/apache2
security
/etc/modsecurity/modsecurity.conf
/var/log/apache2/error.log
/etc/modsecurity/modsecurity.conf
/var/log/apache2/error.log

어떤 도움을 주셔서 감사합니다!

토니

답변1

Joe 편집기가 충돌하여 일종의 덤프를 생성한 것 같습니다. /etc/apache2/conf.d/DEADJOE를 다른 위치(예: /var/tmp)로 이동한 다음 다시 시작해 보십시오. 또는 특정 확장자를 가진 구성 파일만 찾도록 아파치를 구성할 수 있습니다.

Include /etc/apache2/sites-available/*.conf

관련 정보