Web Hosting Talk







View Full Version : Testing new Apache config


MattMans
02-12-2002, 05:14 AM
Hi all

Just a quick question...

I know there's a way to test your new httpd.conf before you restart apache, but I can't remember what it is!

If you could help that would be great.

Cheers

Matt

palmtree
02-12-2002, 05:29 AM
Maybe:

httpd -t

Out of man page:
-t Run syntax tests for configuration files only.
The program immediately exits after these syntax parsing with either a return code of 0 (Syntax OK) or return code not equal to 0 (Syntax Error).


laterz..

MattMans
02-12-2002, 07:32 AM
Cheers - works a treat!

;)

serve-you
02-12-2002, 01:31 PM
apachectl configtest

-Dan