Re: Command line method to get virtual hosts and DocumentRoot?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <jbrose@xxxxxxx> 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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux