Re: "apachectl -S" and DocumentRoot

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

 



On 13 Feb 2018, at 10:24, Rose, John B <jbrose@xxxxxxx> wrote:
> is a nice command. We are looking for something that outputs the "DocumentRoot" for all virtual hosts
> 

grep -ir documentroot /usr/local/etc/httpd/

(Or wherever your https.conf lives)

DocumentRoot "/usr/local/www/apache24/data"
   DocumentRoot /usr/local/www/roundcube/
   DocumentRoot /usr/local/www/postfixadmin
   DocumentRoot /usr/local/www/phpMyAdmin
   DocumentRoot "/usr/local/www/examle.com"
   DocumentRoot "/usr/local/www/apache24/data"
   DocumentRoot /usr/local/www/www.example.net/wordpress/
   DocumentRoot /usr/local/www/anotherexample.tld/
   DocumentRoot /usr/local/www/someone’s gallery.tld/html/
   DocumentRoot /usr/home/msmith/Sites/
… etc etc


-- 
"If you can't do something smart, do something right."


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[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