try "httpd -S"
well i had no trouble finding out how:
Usage: ./httpd [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-v] [-V] [-h] [-l] [-L] [-S] [-t] [-T]
-D name : define a name for use in <IfDefine name> directives
-d directory : specify an alternate initial ServerRoot
-f file : specify an alternate ServerConfigFile
-C "directive" : process directive before reading config files
-c "directive" : process directive after reading config files
-v : show version number
-V : show compile settings
-h : list available command line options (this page)
-l : list compiled-in modules
-L : list available configuration directives
-S : show parsed settings (currently only vhost settings)
-t : run syntax check for config files (with docroot check)
-T : run syntax check for config files (without docroot
> after searching in the apache doc and in dejanews i can't find
> a way to let apache to give me the list of the virtualhost.
> The pb is:
> i use a script that must do something for each virtualhost on
> the server, after processing i send a email report to the serveradmin
> of the virtualhost.
> i can process the http.conf file but if i had a way to ask apache
> for the virtualhost list and for the serveradmin it will be nicer
> since new version of apache or modification of the layout will not mess
> all of my script actions...
> Do someone know of a mean to do that ??