My Hosting provider allows me to add multiple Add-on Domains in addition to the main domain.
I enter the following in the Add-On domain page:
New Domain Name: example.com
Document Root: /example.com
(Other details are not relevant to this thread).
However, to my surprise, cpanel creates 2 directories in my Hosting space's root directory:
/example.com
/public_html/example.com
However, the second one (/public_html/example.com) is the actual document root.
This creates multiple problems for me (not to mention that a domain root should not be inside another's domain root logically), like when I backup the main domain files, Add-On Domain files are also backed up, a user having FTP access to main domain's root can change any add-on domain's files.
So, is there any way to configure /example.com as the root for the add-on domains??
I am using cPanel Accelerated!!
I enter the following in the Add-On domain page:
New Domain Name: example.com
Document Root: /example.com
(Other details are not relevant to this thread).
However, to my surprise, cpanel creates 2 directories in my Hosting space's root directory:
/example.com
/public_html/example.com
However, the second one (/public_html/example.com) is the actual document root.
This creates multiple problems for me (not to mention that a domain root should not be inside another's domain root logically), like when I backup the main domain files, Add-On Domain files are also backed up, a user having FTP access to main domain's root can change any add-on domain's files.
So, is there any way to configure /example.com as the root for the add-on domains??
I am using cPanel Accelerated!!