Within Virtualmin, I created a virtual server associated with a domain I own. The website loads up fine on any web browser.
However, when I create a subserver then try to load up its contents on a web browser, it says the website cannot be found.
The web browser console error message reads, “NS_ERROR_UNKNOWN_HOST”, and when I input the subserver name into DNSchecker.org, the entire list of DNS servers are not able to pick up anything. I also ran the Validation feature on Virtualmin for both the primary and sub server, and both results read the same, “All features are good.”
Just like the primary server, the subserver does have A records.
However, the primary server does have 4 types of records that the subserver does not have - these records are: SOA (Start of Domain), SPF (Sender Permitted From), NS (Name Server), and DCT (Default Cache Time).
I did check the box for the ‘Setup DNS Zone’ feature.
I’m not sure what the other options you mentioned are.
My VPS is provided by Hostinger.
To add, my previous web hosting service was HostGator, and I had a shared server plan installed with cPanel, which created subdomains with no issues.
I recently changed my web hosting service to Hostinger so that I could afford a virtual private server. I installed CyberPanel on my VPS first and couldn’t create workable subdomains. I am now using Virtualmin and am running into the same issue.
I somewhat fixed the issue by adding CNAME records on hPanel for the subdomains.
But now I’m experiencing something different.
The primary domain and its two subdomains do load up; however, they sometimes load up with the HTTP protocol instead of with HTTPS. All domains are SSL certified, so I’m not sure why this is happening.
Here are the domains if you want to test them out yourself:
I’ve tested these websites on separate browsers and get somewhat different results:
Google Chrome: Sometimes loads up each website with HTTPS, sometimes doesn’t. When it doesn’t, I have to manually enter “HTTPS…” for the website to load up with a secure connection.
Edge: Will show each website is loading up with the HTTPS protocol, but then redirects to the HTTP version. Huh??? I then have to manually enter “HTTPS…” for it to load up with a secure connection.
Firefox: Most of the time, loads each website with the HTTP protocol. I then have to manually enter “HTTPS…” for it to load up with a secure connection.
What website?
Before loading up some unknown code into /home/yourdomain/public_html
Did you first test the default domain index.html file put there by Virtualmin before and after adding the LE cert?
I was asking if the website(s) were from some other system such as for example (WordPress) as this might be the cause hence my question about testing the basic Virtualmin page before loading what can often be a pile of unknown and have nothing whatsoever to do with Virtualmin or even SSL certs
Assuming that you now have valid cert for your primary domain - No leave alone.