Nginx RDP 网关隧道

Nginx RDP 网关隧道

我已将 nginx 配置为将 https 流量代理到 RDS 连接代理。https 连接有效,我可以看到 RDS 服务器的网页并登录到该服务器。当我想启动远程应用程序时,这不起作用。

这是我的 reverse-proxy.conf

server {
    listen 443;
    server_name work.domain.com
    ssl on;
    ssl_certificate /etc/nginx/certificates/work.domain.com/work.domain.com.pem;
    ssl_certificate_key /etc/nginx/certificates/work.domain.com/work.domain.com.key;

    location / {
        proxy_pass https://10.11.75.2;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Real_IP $remote_addr;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }
}

相关内容