These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for subdomain for webmin/virtualmin instead port 10000 - solved on the new forum.
hi there
is it possible to achieve something like:
instead of:
I would prefer this because of my wildcard ssl certificate. Or is ssl certification on port 10000 anyhow not working, or can i change ports without security issues.
best m
Howdy,
Well, the way we'd typically recommend doing this is to leave Virtualmin on port 10000 (or any port of your choosing, really), and have all your domains redirect to that one central location.
By default, going to admin.your-domain.tld will redirect to https://admin.your-domain.tld:10000.
However, in order to get it to play nicer with SSL, you can tweak the redirect it uses to go to any domain of your choosing... perhaps one that you have an SSL certificate for.
You can change the redirect used by Virtualmin in System Settings -> Server Templates -> Default -> Apache Website, and the option you may want to tweak is "URL for admin redirect".
-Eric
hi andreychek
like this i could change the default forward:
https://admin.example.com -> https://example.com:10000
still the connection points to port 10000 which will let my certificates fail, because they are bound to port 443 (i guess) and they are wildcard only.
if it would be possible without major security risks that user can connect to their domain like:
admin.example.com but without addding port numbersl. It's easier to communicate on my side and i do not have to tweak ssl certificates. Of course if this means that the security of the system is lower i would stay away from the idea.
best m
still the connection points to port 10000 which will let my certificates fail, because they are bound to port 443 (i guess) and they are wildcard only.
Ahh, I see what you're saying... however, you should actually be able to use your SSL certificate within Virtualmin.
My recommendation is to do this:
Pick a central domain for your server, one that currently has an SSL certificate
Go into Server Configuration -> Manage SSL Certificates, and click "Copy to Webmin", which will copy that domain's SSL certificate to Webmin. Now, that domain on port 443, as well as webmin on port 10000, both share the same SSL certificate.
I'd then suggest redirecting admin.example.com on your server to port 10000 of the domain that holds your SSL certificate
Would that do the trick for you?
-Eric
Thanks Andreycheck
Now everything works like planned. Perfect. Had do add CA certificate as well as i had problems in firefox. Now everything is up and running.
Thank you very much. Best M