好物优选点击查看详情 京东购买

暂无内容

免费申请SSL证书的方法

server {
    listen       443 ssl http2;
    server_name  xxx.com;
    root         /usr/share/nginx/html;

    ssl_certificate "/ca/xxx.crt";
    ssl_certificate_key "/ca/xxx.key";
    ssl_session_cache shared:SSL:1m;
    ssl_session_timeout  10m;
    ssl_ciphers HIGH:!aNULL:!MD5;
    ssl_prefer_server_ciphers on;

    include /etc/nginx/default.d/*.conf;

    location / {
        proxy_pass http://172.31.22.31:8082;
        proxy_set_header   Host             $proxy_host;
        proxy_set_header   X-Real-IP        $remote_addr;
        proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
        proxy_set_header   X-Forwarded-Host $host;
        proxy_set_header   X-Forwarded-Server $host;
        client_max_body_size 100m;
        client_body_buffer_size 100m;

    }

    error_page 404 /404.html;
        location = /40x.html {
    }

    error_page 500 502 503 504 /50x.html;
        location = /50x.html {
    }
}

原文链接:https://www.codenong.com/cs106971218/

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享