Link to home
Start Free TrialLog in
Avatar of james morrow
james morrowFlag for United Kingdom of Great Britain and Northern Ireland

asked on

2 x IIS severs in smae network, hosting different sites, how to address the second server.

Hi I have 2 iis instalations on different servers within same network. 1 x iis is hosting rdweb, 1 x iis has a website. I would like users to connect via vpn and be able to access the website. Ports 80, 443 are currently forwarded to the rdweb iis server. I'll have a dns entry remote.domain.com pointing to the external IP for the RDWEB. how do i get differentdomain.com to point to the second IIS server? Read some things about IIS redirect, not sure that if thats the way to do this? IF it is detailed instructions would be helpful :)

Thanks,
Avatar of lanboyo
lanboyo

I am assuming that you have a single external routable IP address on the server, otherwise, point a different external IP at the other internal IP.

With the same IP you are somewhat limited.  You can either use different external tcp ports (8080 and 4443 ) for example, though this limits the simplicity of the website URL a tad, as you will need to specify the tcp port in the URL. http://your.domain.com:4443 . https://docs.microsoft.com/en-us/iis/configuration/system.webserver/httpredirect/  IIs redirect is helpful here, redirect http://your.domain.com to http://your.domain.com:8080 and https://your.domain.com to https://your.domain.com:4443 , open those ports on the internet pointing to the other internal server on 80 and 443 ( or 8080 and 4443 if you configure the IIS server to listen appropriately) . It depends on how well IIS handles multi-domain urls.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.