设置指向另一个服务器的反向Nginx代理

问题描述

我对反向代理世界是陌生的,需要一些帮助。我有一台运行proxmox的服务器,该服务器具有一个运行certbot和Nginx的LXC容器,用于反向代理。我的域运行https很好,但是我正在尝试将example.com/cloud链接到nextcloud容器。

当前我的可用网站如下:

    server {
      listen 80;
      listen [::]:80;
      root /var/wwww/example/html;
      index index.html index.html index.Nginx-debian.html;
      server_name example.com www.example.com;

      location / {
        try_files $uri $uri/ =404;
      }

      location /cloud {
        proxy_pass "https://10.0.1.215/nextcloud/index.PHP";
      }
    }

我的nextcloud实例使用自签名证书来运行https,因为我尚不知道如何将certbot连接到nextcloud。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)