should it be online ? The hostname is a hostname & not a domain name ! So perhaps the only place that should work is hostname.tld:10000 or 200000 I still can not see why people expect the hostname to work as a domain there have been numerous threads on this forum where things don’t work as expected because of this idea that the host name also needs to be a domain name … it does not, it gives you more troubles than it’s worth trying to use the hostname as a domain
@wms In virtualmin you can set the default website and in your case above because there is no virtual server defined for s1.watermelonsystems.net then it is most likely showing your clients website because it is the default website/virtual server. If you only have one virtual server then this will also cause it to be the default website.
To set the default website/virtual server
Select the virtual server/domain/website you want as default using the dropdown in virtualmin
Web Configuration → Website Options → Default website for IP address
If your domain is redirecting to another domain as described, it’s most likely because you have not enabled “Apache” or “Nginx” for the domain.
When you don’t setup a “Virtual Server” with one of these features, it’ll point the domain associated with the Virtual Server to the “default” (typically first added) domain that has the feature turned on.
@shoulders point allows you to “change” the default website served, however this only applies to the “default” website, and would not address a domain which lacks the feature being enabled to serve websites for it.
There is an option to enable your hostname as a virtual server. I can post it at the end of the day but it is in virtualmin config. maybe someone can post it.
Virtualmin --> System Settings --> Virtualmin Configuration --> Configuration category: SSL Settings --> Setup Let's Encrypt SSL certificate for hostname
Yes, and keep visible = A virtual server will appear in your list of virtual servers and stay there allowing you to edit it as a normwal virtual server.
Yes = This just presents the domain while it is doing the Let’s Encrypt SSL handshakes and then hides it again.
No = no LE SSL Certificate.
So my server’s hostname has a SSL and I use the hostname to access my servers because I have a live site and a dev site so I find this method very useful. I dont have them visible as a virtual server as there is no need and is not recommended or at least not the preferred option.
Virtualmin services (10000) and Usermin services (20000) can be accessed via any domain on your server as they use Miniserv and not Apache.