【发布时间】:2020-02-26 17:30:05
【问题描述】:
我有一个在 Windows 机器上运行的 FreeRDP 客户端,可以通过外部网络的 IP 地址和端口号 (IP:PORTNUMBER) 进行访问。我必须通过远程 ubuntu 机器上的 Nginx 代理传递我的 FreeRDP 客户端,以便可以在其上启用 HTTPS。我有自己的域名并启用了适当的证书。
示例:FreeRDP URL -“http://15.206.114.133:8000/”
域名网址: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)访问它。
- 我有一个工作网站“https://staging.gvbgeomatics.com/”,我希望我的 FreeRDP 重定向到我的域 /machines 下
我已尝试在代理通行证下传递我的 FreeRDP 网址。
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
【问题讨论】:
标签: http nginx https rdp nginx-reverse-proxy