subdomain for webmin/virtualmin instead port 10000 - solved

5 posts / 0 new
Last post
#1 Wed, 10/05/2011 - 12:23
metafor

subdomain for webmin/virtualmin instead port 10000 - solved

hi there

is it possible to achieve something like:

https://server.example.com

instead of:

https://example.com:10000

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

Wed, 10/05/2011 - 12:40
andreychek

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

Thu, 10/06/2011 - 04:29 (Reply to #2)
metafor

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

Thu, 10/06/2011 - 09:27
andreychek

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:

  1. Pick a central domain for your server, one that currently has an SSL certificate

  2. 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.

  3. 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

Thu, 10/06/2011 - 11:51 (Reply to #4)
metafor

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

Topic locked