I have a dedicated server and have install ubuntu 16.04 LTS and Virtualmin + Webmin, For example, My domain is mydomain.com, and now I need a sub domain demo.mydomain.com, then I created a Sub-sever and fill the domain name as “demo.mydomain.com”, Sub-server created successfully.
My problem is I can not run php for this sub-domain, I can access html file, for example, when I run http://demo.mydomain.com/index.php, it prompt can not open the page and then redirect www.mydomain.com.
I also enable sub-domain feature in Virtualmin Configuration -> Advanced Options and then try to add Sub-domain for mydomain.com but same result,
I don’t understand where a redirect would even come from; nothing in the default Virtualmin server template for sub-servers would redirect to the parent domain. So, that’s weird and confusing.
What’s in the error_log for each of the servers in question? (The parent domain and the subdomain sub-server?)
the original OS for my dedicated server is Ubuntu 14.04 LTS, and then I upgrade to 16.04 LTS in order to use php 7.0, and then install virtualmin + webmin, not sure if the issue is cause by OS?