CentOS7のApacheの設定httpd.confとssl.confの文法チェック

Linux

 

Apache設定後(httpd.conf)、文法に誤りがないか確認。

$ apachectl configtest
Syntax OK

https化のため、/etc/httpd/conf.d/ssl.conf
もチェックしているらしいということがわかったので、調べてみる。

ssl.confで、最後の行にaという文字を入れてみて、確認。

$apachectl configtest

AH00526: Syntax error on line 219 of /etc/httpd/conf.d/ssl.conf:
Invalid command ‘a’, perhaps misspelled or defined by a module not included in the server configuration

 

ちゃんと、ssl.confの文法チェックもしていることがわかった。

コメント

タイトルとURLをコピーしました