Understanding Document Roots in cPanel Print

  • cpanel, document-root, domains, files
  • 0

A domain's document root is the directory from which the web server serves that domain's public files.

For example, a domain may use a directory similar to public_html/example.com. An index.php or index.html placed there can become that domain's home page.

Why document roots matter

  • Two domains with different document roots can host different websites.
  • Domains sharing the same document root serve the same underlying files.
  • Changing a document root changes where the server looks for the site's files.

Current cPanel limits new domain document roots to allowed locations under public_html. The Main Domain's document root cannot be changed from the Manage Domain interface.


Was this answer helpful?

« Back