Score:0

How do I redirect a subdomain to another internal webserver without affecting the RDP Gateway

mn flag

we have a standard windows server 2022 running IIS 10 and remote desktop gateway. we use rdp.domain.com for the gateway address for external RDP Users.

we would like to run another internal windows server with IIS 10 for a wedbased app for external users at app.domain.com

what would be the best solution to allow users to access the new app webserver externally.

have tried IIS Rewrite but just cant get it to work. it either redirects all traffic including RDP or will not redirect to new webserver.

the app webserver works fine for onpresmise users.

Jaromanda X avatar
ru flag
I'm confused, how is RDP at all effected by IIS Rewrite? IIS deals with web traffic, port 80 and or 443. RDP is (by default) on port 3389 (IIRC)
joeqwerty avatar
cv flag
Use a different public ip address for the new web app. Set up the appropriate port forwarding/NAT on the firewall for the internal host of this web app.
Keith Langmead avatar
us flag
@JaromandaX Connections to Remote Desktop Gateway are normally handled via RPC over HTTP, not a direct RDP connection, so yes ports 80 and 443 are used for RDP.
Jaromanda X avatar
ru flag
ahh, forgot about the gateway that was not mentioned at all in the OP :p
Lex Li avatar
vn flag
ARR is needed to build a full feature reverse proxy, https://learn.microsoft.com/en-us/iis/extensions/url-rewrite-module/reverse-proxy-with-url-rewrite-v2-and-application-request-routing
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.