美文网首页
宝塔nginx配置https服务

宝塔nginx配置https服务

作者: 不能没有音乐 | 来源:发表于2021-03-26 09:47 被阅读0次

nginx配置

server {
    listen 443 ssl;
    server_name    xxx.cn;
    charset UTF-8;
    access_log      /home/log/nginx_access.log;
    error_log       /home/log/nginx_error.log;
    client_max_body_size 75M;
    
    ssl_certificate      1_xxx.cn_bundle.crt;
    ssl_certificate_key  2_xxx1.cn.key;

    ssl_session_cache    shared:SSL:1m;
    ssl_session_timeout  5m;

    ssl_ciphers  HIGH:!aNULL:!MD5;
    ssl_prefer_server_ciphers  on;

    location / {
        include uwsgi_params;
        uwsgi_pass 127.0.0.1:9987;
        uwsgi_read_timeout 3000;  
        uwsgi_send_timeout 3000;  
        proxy_read_timeout 3000;
    }
}

在下面的目录上传证书文件
/www/server/nginx/conf
1_xxx.cn_bundle.crt与2_xxx1.cn.ke文件

最后记得服务器宝塔的443端口都要开启

相关文章

网友评论

      本文标题:宝塔nginx配置https服务

      本文链接:https://www.haomeiwen.com/subject/hruzcltx.html