Re: [users@httpd] Command line method to get virtual hosts and DocumentRoot?

2016-01-28 Thread Rose, John B
Thanks Yehuda and Pete

On 1/28/16 1:31 PM, "Pete Houston"  wrote:

>On Thu, Jan 28, 2016 at 05:03:41PM +, Rose, John B wrote:
>> Is there a command line method to list all the virtual hosts and each
>>DocumentRoot?
>
>Should be pretty simple to construct with Apache::ConfigParser.
>https://metacpan.org/pod/Apache::ConfigParser
>
>Pete
>-- 
>Openstrike - improving business through open source
>http://www.openstrike.co.uk/ or call 01722 770036


-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] Command line method to get virtual hosts and DocumentRoot?

2016-01-28 Thread Pete Houston
On Thu, Jan 28, 2016 at 05:03:41PM +, Rose, John B wrote:
> Is there a command line method to list all the virtual hosts and each 
> DocumentRoot?

Should be pretty simple to construct with Apache::ConfigParser.
https://metacpan.org/pod/Apache::ConfigParser

Pete
-- 
Openstrike - improving business through open source
http://www.openstrike.co.uk/ or call 01722 770036


pgp4f8m7Q5LZL.pgp
Description: PGP signature


Re: [users@httpd] Command line method to get virtual hosts and DocumentRoot?

2016-01-28 Thread Yehuda Katz
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  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
>


[users@httpd] Command line method to get virtual hosts and DocumentRoot?

2016-01-28 Thread Rose, John B
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