NGINX代理通行证不与SSL一起使用



当前,我在ESXI上运行了3台虚拟机,其中NginX正在控制请求。一个与网站一起运行的Apache Web服务器,这是第一个示例。最后一个是运行NextCloud the Snap,它是SSL加密的,当我尝试运行nginx时会给我这个错误。如何使用SSL通过NGINX运行它?

这是nginx

工作的网站
    server {
    listen 80;
    server_name URL URL2;
    location / {
            proxy_pass http://192.168.1.7;
            proxy_set_header host  URL;
    }
    }

这是与SSL不起作用的

    server {
    listen 80;
    listen 443 ssl;
    server_name URL3;
    location / {
            proxy_pass https://192.168.1.17;
            proxy_set_header host URL3;
    }
    }

这是错误

Secure Connection Failed
The connection to dynanixcloud.ddns.net was interrupted while the page was loading.
The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.

根据您显示的配置,我找不到SSL参数。因为您正在显示听443 SSL ;然后,您必须提供SSL指令以支持上述论点。

之类的东西

服务器{

listen              443 ssl;
server_name         www.example.com;
ssl_certificate     www.example.com.crt;
ssl_certificate_key www.example.com.key;
ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers         HIGH:!aNULL:!MD5;
...

}

最新更新