skip to Main Content

i want to create a subdomain that the cpanel will create a separate folder outside of public_html

example:

I am creating subdomain xyz but it is stored in public_html/xyz
what I want it to save to xyz.mydomain.com which is outside public_html folder in the /home/user root folder like how hostgator cpanel does… is it possible to change the location??

2

Answers


  1. Yes, it is possible to have the Document Root of your subdomain outside of your public_html directory.

    You can navigate to:

    cPanel -> Subdomains

    … there you will see a column called “Document Root” – this is the directory that your subdomain will be “loaded” from

    You can change that to another directory, for example if you place

    /subdomain.com

    in there you will create a folder /home/$USER/subdomain.com which will be your subdomain’s Document Root

    Login or Signup to reply.
  2. no, you can’t change it in your self, you should ticket to the host manger provide your service, because it changes in WHM

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search