JSON: Show list of document roots for all domains under this User

Version 1.592

Feature
Finished

New option for CMD_DOMAIN or CMD_API_DOMAIN, both of which will only output JSON: CMD_DOMAIN?action=document_root Where all domains will be output. Sample output: { "users": { "fred": { "domains": { "test.com": { "private_html": "/home/admin/domains/test.com/private_html", "public_html": "/home/admin/domains/test.com/public_html", "subdomains": { "forum": { "private_html": "/home/admin/domains/test.com/private_html/forum", "public_html": "/home/admin/domains/test.com/public_html/forum" } } }, "domain.com": { "private_html": "/home/admin/domains/domain.com/private_html", "public_html": "/home/admin/domains/domain.com/public_html", "subdomains": { "sub": { "private_html": "/home/admin/domains/domain.com/private_html/sub/sub", "public_html": "/home/admin/domains/domain.com/public_html/sub/sub" } } } } } } }

Interested to try DirectAdmin? Get a 30-day Free Trial!