Hello , welcome to Castle-Murray
Login Register

Reverse Docroot

:1
Date posted: Nov. 30, 2022, 3:49 a.m.
Problem: Need to know what domain points to the directory you're currently in without having to figure out what domains to look for?
What does it do?: Tells you the domain of the co
sean@castle-murray.com[~/bash/uapi/imh] #
for i in $(uapi DomainInfo list_domains | awk '/-|main_domain/  {print $2}' ); do echo " $i $(docroot.py $i)"| grep $(pwd); done
sean@castle-murray.com[~/bash/uapi/imh] #
This does only work at InMotion Hosting due to the docroot.py.

Add a comment

Login to comment.