zoukankan      html  css  js  c++  java
  • linux 安装ssl 失败原因

    配置文件成功的情况下打不开:开放端口 设置端口

        server {
            listen       443 default ssl; //需要加不然会显示404 default ssl
            server_name  域名;
    
            ssl_certificate      zhengshu/certificate.crt;
            ssl_certificate_key  zhengshu/36xueshecom.key;
    
            ssl_session_cache    shared:SSL:1m;
            ssl_session_timeout  5m;
    
            ssl_ciphers  ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!3DES:!aNULL:!MD5:!ADH:!RC4;
            ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
            ssl_prefer_server_ciphers  on;
    
            location / {
                try_files $uri $uri/ /index.php?$query_string;
                root   /www/laravel/public;
                index  index.html index.htm index.php;
            }
    
            location ~ .php$ {
                root           /www/laravel/public;
                fastcgi_pass   127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include        fastcgi_params;
            }
        }
    
  • 相关阅读:
    2017/3/27 morning
    2017/3/24 afternoon
    2017/3/24 morning
    2017/3/21 afternoon
    2017/3/21 morning
    2017/3/20 afternoon
    2017/3/20 morning
    2017/3/16 afternoon
    2017/3/16 morning
    2017/3/15afternoon
  • 原文地址:https://www.cnblogs.com/fengqyuan/p/12166235.html
Copyright © 2011-2022 走看看