For Virtualmin, there is already an automatic redirect for
admin.domainname.tld for every virtual server managed by Virtualmin, but it still redirects to the Webmin port. (Currently
admin doesn’t get an SSL cert without some extra hoop jumping, but that’ll be fixed soon. For now it just means you browse to
http://admin.domain.tld and it’ll bounce you to
You have a coupe of options for putting Webmin on port 443, and I don’t like/recommend either of them.
Before I list them, let me repeat: You probably should not do either of these things. They add complexity for basically no benefit (I mean, what harm is there in having a port on the URL, especially when it’s easy to make a redirect to it?)
- Setup Apache or nginx to proxy to localhost:10000 on the name you want it to live on. There are docs for this on the Webmin home page, just scroll down a bit…there are a bunch of options there, some even worse than proxying.
- Assuming you have more than one IP, configure Apache to listen on all but one of them. Configure Webmin to listen on the remaining one and change the port to 443. Setup a DNS A record for your preferred name pointing to the Webmin IP.
Neither of these is good. But, you can do them if it really, really, bothers you to have a port on the URL.