Cannot create a virtual server in the name of (hostname).
Im trying to do this so I can login in to webmin via a secure fqdn and so I can create a webpage for the (hostname). I need it to be secure. Im also doing this because I want mail for the sending server to be properly configured for DMARC, DKIM and SPF.
However for some reason, Webmin will not allow the creation of a virtual domain in the name of (hostname),
I get “Failed to create virtual server : You cannot create a new domain with (hostname), unless option Setup Let’s Encrypt certificate for hostname is first disabled in Virtualmin Configuration ⇾ SSL settings page”
When I go to System Settings/ Virtualmin Configuration and choose SSL settings, under **(Setup Let’s Encrypt SSL certificate for hostname) I do as instructed above and set it to No.
WHen I reboot server its all good, its set to No.
Then I create the subdomain (leaving out mail as that doesnt work). It works fine.
If it successfully performs the tasks (and yes I have added it to DNS server)
Thenit should be done, I go to the hostname page… No… Its misconfigured still. And No, I cannot login in to https://(hostname):10000 which was one of the key reasons I wanted to do this.
The docs explain in many places to name your server something (literally anything) other than a name you’ll be virtually hosting in Virtualmin. So, change your server hostname to something other than the domain name you want to host in Virtualmin.
What I usually do is, I add my hostname as an alias to the main domain and then include it in Let’s Encrypt SSL. That way I’m able to login to Virtualmin on sr.domain.com:10000
Well none of my domains open port 10000, I don’t know why. The only thing that will is the IP address. Im wanting to ensure that mail gets delivered properly so it needs dmarc, spf and dkim, but I dont believe that can be done without a server established. The websites all work fine so the DNS isnt wrong in that respect.