So I have a cPanel account. Let's say for example the cPanel account is managing website: my-example-site.com
I create a subdomain for that site within cPanel the document root is NOT shared: staging.my-example.com
The File system for the staging site has the staging site located in:
public_html -> staging.my-example.com -> Files in this directory belong to the staging site.
I then put index.html in the root of the staging site directory. The question is WHY can the staging site be accessed with the following URL?
It's draft?!? Why allow access to the subdomain website like this, why aren't they completely separate? Of course, the subdomain also works as expected and can still be access though: staging.myexample.com/index.html
I don't think search engines are going to really index this weird link and will index the subdomain properly but it's weird why this is a thing. The server runs NGINX in case Apache is handling things differently here.
Please sign in to leave a comment.