List all VirtualHosts
I am writing an integration that will need a list of every hostname that the cPanel server will respond to. I know I can get this information by parsing the output of `httpd -S`, but I can't find any way of getting this in a structured format from any cPanel/WHM API. Is there any other way of getting that data? Hopefully some part of the command line API (/usr/local/cpanel/bin/whmapi1 --output=json)
-
Hey there! What about the file /etc/userdomains? That lists all the domains on the system as well as their owner, in a plain text format that is easy to interpret. You'll see the file formated like this: domain.com: username domain2.com: user2 0 -
Trying 0 -
@shawn21 - can you let me know what issues you're running into? 0
Please sign in to leave a comment.
Comments
3 comments