Score:0

How to stop RD-Gateway from redirecting to HTTP

ky flag

I have a single server setup for my Remote Application Services. So one server is RD-Gateway, Connection Broker, and Host all at once.

I'm trying to use a Cloudflare Tunnel as a proxy with the following ingress rules (ws for websocket):

ingress:
  - hostname: rdp.domain.com
    service: ws://SERVERNAME

I can connect via rdp.domain.com and successfully see the IIS default page. However, if I try rdp.domain.com/rdweb/ I get a ERR_TOO_MANY_REDIRECTS error. But the URL changes to rdp.domain.com/RDWeb/Pages/

Cloudflare has an article about this which lists possible causes. One thing I do use is a Full (Strict) Encryption mode for my domain. The article suggests that my Server possibly redirects HTTPS to HTTP which could cause the issue because it loops basically forever.

When I try to connect to go to rdp.domain.com/rdweb/ and have Wireshark running on the RD-Gateway Server, I see a lot of those in a loop (around 20 of these entries) - .248 is the IP Cloudflare Tunnel uses to communicate, .226 is my RDP Server:

1589    26.863255   10.0.0.248  10.0.0.226  HTTP    1133    GET /rdweb HTTP/1.1 
1590    26.864954   10.0.0.226  10.0.0.248  HTTP    403     HTTP/1.1 302 Found  (text/html)
1591    26.875477   10.0.0.248  10.0.0.226  TCP     60      53360 → 80 [ACK] Seq=37246 Ack=12216 Win=2102272 Len=0

I can't exactly say what this means. however the -> 80 makes me think it wants to redirect to HTTP?

I have the following questions:

  • How can I continue to dig into this issue to really find out what happens?
  • If the problem is that the server redirects to port 80, can I tell my RD-Server to really only use HTTPS and Port 443, and not use 80 at all?
I sit in a Tesla and translated this thread with Ai:

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.