Update an alias site's document root

Operating System & Version
CentOS 7 (CloudLinux 7.9)
cPanel & WHM Version
Latest (Updated 5 days ago)

RyanR

Well-Known Member
Jul 22, 2020
46
5
8
London
cPanel Access Level
Root Administrator
Hi,

Of course with subdomains we can update the document root via cPanel > Domains > Subdomains > Pencil Edit (For each domain), however you can't do this for Alias domains.

We have an alias domain, for example: website.io and the document root is setup to a custom location of /public_html/websiteio/ however we want to change that to /public_html/newsiteio/

We can't easily delete the domain because we have a few hundred subdomains all with custom document roots, we would have to delete every single subdomain before being able to temporarily remove the alias domain only to have to re-add everything.

I'm trying to find the configuration file where I can update the document root or an option to delete just the alias domain temporarily.

Any ideas?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
11,718
1,862
363
cPanel Access Level
Root Administrator
Hey there! The process would be similar to this, you would just only make changes for your specific domain instead of the overall cPanel account:


Can you try that and see if that is what you're looking for?
 

RyanR

Well-Known Member
Jul 22, 2020
46
5
8
London
cPanel Access Level
Root Administrator
Hey there! The process would be similar to this, you would just only make changes for your specific domain instead of the overall cPanel account:


Can you try that and see if that is what you're looking for?
That's not for document root on alias domains...