Besides being a bit of a mouthful, debugging Apache configuration issues has gotten slightly more complicated after Apple released the Server 2.2 update for Mac OS X Server.
Formerly, you could do a basic configuration check this way:
Now however you need to first set an environment variable and specify a path to the configuration file:
apachectl -t -f /Library/Server/Web/Config/apache2/httpd_server_app.conf -D WEBSERVICE_ON
The above assumes you are running as root, where “#” is prompt.