How to assign a subdomain to a specific port of my domain with virtualmin

Hello all,

i am facing a headache the last few days. I hope that somebody could help me out.
My problem is as follows:

I want if somebody is on my site and clicks on let’s say “something.mydomain.com” to be directed to “mydomain.com:9090” where i run a specific application. Also i dont want the “mydomain.com:9090” to be seen in the browser window but only the “something.mydomain.com”.

I know that it is not a dns matter (well… i think i know-forgive me if i am wrong) and i also think that i have to make the “something.mydomain.com” a subserver through virtualmin (i think) but because i am a newbe my knoweledge stops there.

I hope that somebody could help me out.

Thanks for reading it whether or not you can help and also thanks in advance for any good (or bad :slight_smile: answer)

Yiorgos

Howdy,

You may need to setup a proxy.

Once you create a Sub-Server for something.mydomain.com, go into Server Configuration -> Proxy Paths. From there, you can set it up so that anyone going to your Sub-Server is “proxied” to your alternate port, but the alternate port won’t be shown to the user.

-Eric