subdomain for webmin/virtualmin instead port 10000 - solved

  • metafor
  • 08/24/11
  • Offline
Posted: Wed, 2011-10-05 12:23

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


Howdy, Well, the way we'd

  • andreychek
  • 01/05/09
  • Online Now
  • Wed, 2011-10-05 12:40

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


hmm, not all clear yet

  • metafor
  • 08/24/11
  • Offline
  • Thu, 2011-10-06 04:29

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

  • andreychek
  • 01/05/09
  • Online Now
  • Thu, 2011-10-06 09:27

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


solved it!

  • metafor
  • 08/24/11
  • Offline
  • Thu, 2011-10-06 11:51

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