Cant create subdomain in the name of the server hostname

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.

SYSTEM INFORMATION
OS type and version Ubuntu Linux 22.04.4
Webmin version 2.111
Virtualmin version 7.20.2
Webserver version Linux 5.15.0-118-generic on x86_64
Related packages Create Virtual Server

Don’t do that.

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

Hope this helps.

Why not login using literally any name hosted by Virtualmin? You never need to use the system hostname.

The setting you want is:

Virtualmin --> System Settings --> Virtualmin Configuration --> Configuration category: SSL settings --> Setup Let's Encrypt SSL certificate for hostname: Yes

Ive found that doesn’t work. Logging in to https://(already established domain name in Virtualmin):10000 just creates a timeout with no result.

That can’t be. I’d guess that means DNS is wrong for that name.

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.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.