You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Rose, John B" <jb...@utk.edu> on 2018/02/13 17:24:34 UTC

[users@httpd] "apachectl -S" and DocumentRoot

Hello


apachectl -S


is a nice command. We are looking for something that outputs the "DocumentRoot" for all virtual hosts


Is there some way to do that with a single command?


Thanks

[users@httpd] Re: "apachectl -S" and DocumentRoot

Posted by "@lbutlr" <kr...@kreme.com>.
On 13 Feb 2018, at 10:24, Rose, John B <jb...@utk.edu> 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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org