Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: Remote Desktop Gateway behind NGINX Reverse Proxy

$
0
0
You can't share a https and stream on the same port, either only use stream or use a different port with stream.
RDP needs stream as its TCP and not HTTP(s).

# load balance your rdp servers via port 444

worker_processes 2;
error_log logs/error.log;

events {
worker_connections 16384;
}

# http {
# ... your usual http block ...
# } # http end

stream {
error_log logs/stream_error_rdp.log;

upstream backend {
hash $remote_addr consistent;
server 192.168.99.3:443;
server 192.168.99.4:443;
server 192.168.99.5:443;
}

server {
listen 444 so_keepalive=on;
proxy_connect_timeout 300s;
proxy_timeout 300s;
proxy_pass backend;
}

}

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>