Jump to content

Redirecting DNS name to app on WS 2016

Hello everyone!

 

I recently installed some gaming servers on a Windows Server 2016 machine. Some of them have a Webpage that I would like to access remotely without having to use the external IP....

Is there a way to for example use app1.domain.com and redirect it to the specific port on the server? 

 

I would have:

app1.domain.com -> 127.0.0.1:8081

app2.domain.com -> 127.0.0.1:8080

app3.domain.com -> 127.0.0.1:4335

 

and maybe more (I have McMyAdmin, Farming simulator and Plex for now)

I have some basic knowledge in managing my domain name, but once the request goes to the server how can I redirect the browser to the correct app?

My router is already port forwarding 80 and 443 to the server btw

 

I don't know if I am really clear in my explanations either hahahahahaha

Any help is welcomed !!

Link to comment
Share on other sites

Link to post
Share on other sites

Yes you can, just create a redirection webpage that looks at the requested URL/URI and redirect based on that.

Link to comment
Share on other sites

Link to post
Share on other sites

56 minutes ago, Jerped said:

Hello everyone!

 

I recently installed some gaming servers on a Windows Server 2016 machine. Some of them have a Webpage that I would like to access remotely without having to use the external IP....

Is there a way to for example use app1.domain.com and redirect it to the specific port on the server? 

 

I would have:

app1.domain.com -> 127.0.0.1:8081

app2.domain.com -> 127.0.0.1:8080

app3.domain.com -> 127.0.0.1:4335

 

and maybe more (I have McMyAdmin, Farming simulator and Plex for now)

I have some basic knowledge in managing my domain name, but once the request goes to the server how can I redirect the browser to the correct app?

My router is already port forwarding 80 and 443 to the server btw

 

I don't know if I am really clear in my explanations either hahahahahaha

Any help is welcomed !!

Assuming you are using MS-IIS on that Win2016

https://support.microsoft.com/en-au/help/324000/how-to-redirect-urls-to-different-web-sites

 

Otherwise you will need to tell use what webserver you are running.

Link to comment
Share on other sites

Link to post
Share on other sites

Yeah well I think each seem to have their own webserver......

 

MCmyadmin you just install and the start the app, and there you go (https://www.mcmyadmin.com/)

Plex is the same (https://www.plex.tv/how-it-works/)

Farming simulator I don't know, it's my friend who manages it. I think it has a stand-alone webserver too..... (http://www.farming-simulator.com/fs17-rent-a-dedicated-server.php

 

Yeah I installed IIS thinking I would need it xD

Link to comment
Share on other sites

Link to post
Share on other sites

12 minutes ago, Jerped said:

Yeah well I think each seem to have their own webserver......

 

MCmyadmin you just install and the start the app, and there you go (https://www.mcmyadmin.com/)

Plex is the same (https://www.plex.tv/how-it-works/)

Farming simulator I don't know, it's my friend who manages it. I think it has a stand-alone webserver too..... (http://www.farming-simulator.com/fs17-rent-a-dedicated-server.php

 

Yeah I installed IIS thinking I would need it xD

Just install the IIS role and configure the redirection, you can redirect to anything it doesn't have to be running on IIS or on the same server.

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, leadeater said:

Just install the IIS role and configure the redirection, you can redirect to anything it doesn't have to be running on IIS.

Mmmhhh do you have instructions somewhere to help me do it? it's my first time using IIS :<

Link to comment
Share on other sites

Link to post
Share on other sites

3 minutes ago, Jerped said:

Mmmhhh do you have instructions somewhere to help me do it? it's my first time using IIS :<

Check the link @Rohime posted, it's pretty easy to do and many examples online. Once you figure out the first one rest will be easy, you can also test but just trying to browse to the url and see where you get redirected.

Link to comment
Share on other sites

Link to post
Share on other sites

59 minutes ago, leadeater said:

Check the link @Rohime posted, it's pretty easy to do and many examples online. Once you figure out the first one rest will be easy, you can also test but just trying to browse to the url and see where you get redirected.

Yeah I had a quick look at it but It seem to require you to know where the website content file is located.... I don't. Also other guides I saw were for domain.com/app instead of app.domain.com :/

 

Link to comment
Share on other sites

Link to post
Share on other sites

First few things to check is if you type the URL http://[$serverip]:8080 in the browser from a different PC on the same network do you get a webpage? Try the same with 4335 and 8081.

 

If that works try http://app1.server domain.com:8080 and so on.

 

If they work you need to setup virtual hosts in IIS and then set a site based redirect for each virtual host to the correct port. Eg.

http://app1.serverdomain.com -> http://app1.serverdomain.com:8080

Link to comment
Share on other sites

Link to post
Share on other sites

15 minutes ago, NZLaurence said:

First few things to check is if you type the URL http://[$serverip]:8080 in the browser from a different PC on the same network do you get a webpage? Try the same with 4335 and 8081.

 

If that works try http://app1.server domain.com:8080 and so on.

 

If they work you need to setup virtual hosts in IIS and then set a site based redirect for each virtual host to the correct port. Eg.

http://app1.serverdomain.com -> http://app1.serverdomain.com:8080

Yes that's what I have currently. I can use mcmyadmin.domain.com:8081, plex.domain.com:455something and farming.domain.com:8080 to access them.

I just want to remove the port at the end xD All of them are running on the same server, and it's accessible from outside the network (public).

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×