WebRDP在Nginx反向代理配置上无法正常工作

问题描述 投票:0回答:1

我有一个运行在Windows机器上的FreeRDP客户端,可以通过IP地址和端口号从外部网络(IP:PORTNUMBER)进行访问。我必须通过远程ubuntu机器上存在的Nginx proxy_pass我的FreeRDP客户端,以便可以在其上启用HTTPS。我有自己的域名并启用了适当的证书。

示例:FreeRDP URL-“ http://15.206.114.133:8000/

DomainURL:https://staging.gvbgeomatics.com/

想要通过FreeRDP访问https://staging.gvbgeomatics.com/machine/-> http://15.206.114.133:8000/

步骤:1.在新的Windows 10机器上,我已经安装了FreeRDP客户端,并使其可以通过端口8000访问,并可以通过外部网络访问公共IP地址(12.12.12.12:8000)。

  1. 我有一个正常运行的网站“ https://staging.gvbgeomatics.com/”,我希望我的FreeRDP重定向到我的域/ machines下

我已经尝试通过代理通过来传递我的FreeRDP Url。

location  /machine/ {
    proxy_set_header X-Real-IP $remote_addr;
    proxy_pass http://15.206.114.133:8000/;
    proxy_set_header   Host      $http_host;
    proxy_http_version 1.1;
    proxy_set_header Connection "";

它将在下面打开freeRDP的前端UI>

https://staging.gvbgeomatics.com/machine/”,但它不允许我登录到计算机。

[https://pasteboard.co/IEvu5Pj.png“第一眼”

但是登录后:

https://pasteboard.co/IEvv3Ts.png“第二参考”

出现错误消息

TypeError: this.sock is undefined

我有一个运行在Windows机器上的FreeRDP客户端,可以通过IP地址和端口号从外部网络(IP:PORTNUMBER)进行访问。我必须通过Nginx proxy_pass我的FreeRDP客户端...

http nginx https rdp nginx-reverse-proxy
1个回答
0
投票

[我认为FreeRDP仅将8000用于HTTP流量的UI,但RDP本身不是HTTP流量,并且似乎在端口3389上。您还应该使用nginx的TCP代理启用3389。

© www.soinside.com 2019 - 2024. All rights reserved.