How to test the Apache configuration file?

How to test the Apache configuration file httpd.conf

After making changes to the Apache configuration file, it is a good practice to test the configuration before implementing it.

To test the Apache configuration file for errors:

apachectl configtest

If the configuration file is fine, this command will return Syntax Ok. Otherwise, it will return detailed information about the error [...]