I am trying to add an Addon Domain via cPanel but I get an error message saying:
"A domain cannot be parked on itself."
This is my current setup:
My goal is:
dev.example.com -> Addon domain -> pointing to /dev.example.com/web/
With the new Addon Domain I want to create the following folder structure in order to place files containing sensitive data one level above the new document root /dev.example.com/web/
...
dev.example.com
- config
- vendor
- web -> public folder similar to public_html
.env
.gitignore
composer.json
composer.lock
LICENCE.md
README.md
wp-cli.yml
public_html -> public folder of example.com (primary domain)
...
As you might notice this is the bedrock folder structure created for running a WordPress site with composer and git. Placing the files containing sensitive data like database password are placed one level above the public folder.
So, does anyone has a clue why I cannot create the Addon Domain in my example.com cPanel account?
"A domain cannot be parked on itself."
This is my current setup:
- example.com -> Primary Account Domain -> pointing to /#account_user#/public_html/
- Addon Domains are allowed for this account (WHM Account configuration)
- The Domain dev.example.com is pointing to the server
- Allow to create document root outside of public_html folder (Tweak Settings)
My goal is:
dev.example.com -> Addon domain -> pointing to /dev.example.com/web/
With the new Addon Domain I want to create the following folder structure in order to place files containing sensitive data one level above the new document root /dev.example.com/web/
...
dev.example.com
- config
- vendor
- web -> public folder similar to public_html
.env
.gitignore
composer.json
composer.lock
LICENCE.md
README.md
wp-cli.yml
public_html -> public folder of example.com (primary domain)
...
As you might notice this is the bedrock folder structure created for running a WordPress site with composer and git. Placing the files containing sensitive data like database password are placed one level above the public folder.
So, does anyone has a clue why I cannot create the Addon Domain in my example.com cPanel account?
Last edited by a moderator: