0 votes
in Apache Webserver by
How To Verify Httpd.conf File To Ensure No Configuration Syntax Error?

1 Answer

0 votes
by
httpd –t will help you to verify the syntax.

[root@lab httpd]# /usr/sbin/httpd -t

Syntax OK

[root@lab httpd]#

Alternatively, you may use apachectl command as well.

[root@lab ~]# /usr/sbin/apachectl configtest

Syntax OK

[root@lab ~]#
...