How do I make sure the httpd.conf configuration file is free from syntax errors?

Updated -

Use any of the following commands to check the httpd.conf file for any syntax errors and/or warnings:

# httpd -t
# apachectl configtest
# apachectl -t

If there are any errors or warnings, use them as a guide when modifying the httpd.conf file. Example output of the above commands from an error free httpd.conf file are shown ...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.