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;
}
}
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;
}
}