代码之家  ›  专栏  ›  技术社区  ›  ывапав

nginx代理管理器如何设置重定向443 SSL默认主机到另一个本地web服务器apache+nginx+LetsCrypt

  •  0
  • ывапав  · 技术社区  · 2 年前

    路径配置 /nginx代理管理器/data/nginx/ 默认主机 /站点.conf

    1. 互联网 客户端输入brouser site.com或任何名称(DNS A 777.777.777.777)-> 2. Lan nginx代理管理器(如果没有找到站点)(WAN 777.777.777.777 LAN192.168.100.36)->
    2. Apache+nginx+ssl服务器(192.168.100.37)**

    HTTP有效HTTPS无效**

    启动nginx代理管理器时出错正在启动nginx。。。app_1|nginx:[data/nginx中没有为“listen…ssl”指令定义“ssl_certificate”

    默认网站

    server {
    listen 443 default;
    listen [::]:443 default;
    server_name default-host.localhost;
    include conf.d/include/force-ssl.conf; #no different comment uncomment
    location / {
    proxy_pass $scheme://192.168.100.37:443/;
    proxy_redirect off;
    proxy_set_header   Host $host;
    proxy_set_header   X-Real-IP $remote_addr;
    proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
    }
    
    }`
    
    0 回复  |  直到 2 年前