Validate configuration
#Check Apache syntax without restarting the service.
sudo apachectl configtestPractical useValidate a staging virtual host before a planned reload.
Common mistakesSyntax OK does not prove routing, permissions, TLS, or application behavior. On some systems use apache2ctl.
Source: httpd.apache.org documentation