The best way I know of to do this is with mod_info and then you have two
options:
1. Run "httpd -DDUMP_CONFIG" and parsing the output. This has the downside
of not merging or overriding repeated directives.
2. curl (or similar) http://localhost/server-info and parse that output.

- Y

On Thu, Jan 28, 2016 at 12:03 PM, Rose, John B <jbr...@utk.edu> wrote:

> Is there a command line method to list all the virtual hosts and each
> DocumentRoot?
>
> Httpd –S
>
> Just gives the name and the .conf file.
>
> Thanks
>

Reply via email to