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

Remote Desktop Gateway behind NGINX Reverse Proxy

$
0
0
Hello @ all,

maybe my question has already been asked and some one can lead me to the wright Post.

I am new to NGINX and very convinced and also positivly surprised about this program. I have now the challange to run our RD-GateWay behind this Proxy. The problem is, how I can mange to forward all the RPC/HTTPS traffic. Attched you will see how I want to configure our ReverseProxy

My Config (a ServerBlock) "my.domain.com.conf" for the Remote Desktop Gateway:

upstream rdp {
server 1.1.1.1;
}
server {
listen 443;
server_name my.domain.com;

ssl on;

ssl_certificate /path/to/cert/cert.pem;
ssl_certificate_key /path/to/key/key.pem;

keepalive_timeout 60;


ssl_ciphers HIGH:!ADH:!MD5;
ssl_protocols SSLv3 TLSv1;
ssl_prefer_server_ciphers on;

location / {
proxy_pass https://rdp;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
}
}

Thanks for your Help in Advanced!

Greets
Fame

Viewing all articles
Browse latest Browse all 4759

Trending Articles



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