我对反向代理世界是陌生的,需要一些帮助。我有一台运行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。