Info
Content

Understanding folder & domain structure

The folder & domain structure that Direct Admin uses is a little different than cPanel. Unlike cPanel, you can not manually specify where you'd like your domains to live - they all have a set structure. 

- All domains will have a folder inside the "/domains" folder. This domains folder can be found in the uppermost root of your web storage.

- Inside the "/domains" folder, there will be one folder named after each domain you have. Inside the domain's folder, there will be a public_html folder where you website files should go.

For example, if you have a primary domain named "example.com" and an addon domain named "archhosting.net", they will be stored in these folders respectively:

  • /domains/example.com/public_html
  • /domains/archhosting.net/public_html

If you create a subdomain, it will appear in a folder inside the main domain's folder. For example, if you created a subdomain named "billing" on the domain "example.com", it would live in this folder:

  • /domains/example.com/public_html/billing

Symlinks

You may notice a "private_html" folder. This is a symlink (a shortcut) that points to public_html by default. If you disable this symlink behavior in your Direct Admin settings, then https traffic will be sent to private_html and http traffic will be sent to public_html. We do not recommend disabling this.

Your primary domain is also accessible directly from the "/public_html" folder in your document root.  This is also a symlink to the /domains/primarydomain/public_html folder, and as such it may not show up in FTP.

Back to top