• nginx https配置


    server {
    listen 80;
    root /www/web/find/frontend/web;
    server_name 域名;
    index index.php;
    error_page 400 /errpage/400.html;
    error_page 403 /errpage/403.html;
    error_page 404 /errpage/404.html;
    error_page 405 /errpage/405.html;
    error_page 503 /errpage/503.html;
    location ~ .php(.*)$ {
    fastcgi_pass unix:/tmp/php-70-cgi.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $DOCUMENT_ROOT$fastcgi_script_name;
    fastcgi_param PATH_INFO $2;
    include fcgi.conf;
    }
    location ~ /.ht {
    deny all;
    }
    location / {
    try_files $uri $uri/ /?$args;
    }
    }
    server {
    listen 443;
    root /www/web/find/frontend/web;
    server_name 域名;
    ssl on;
    ssl_certificate cert/214584804830381.pem;
    ssl_certificate_key cert/214584804830381.key;
    ssl_prefer_server_ciphers on;
    ssl_session_timeout 10m;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
    server_name find.fasthookup.top;
    index index.html index.php index.htm;
    error_page 400 /errpage/400.html;
    error_page 403 /errpage/403.html;
    error_page 404 /errpage/404.html;
    error_page 503 /errpage/503.html;
    location ~ .php(.*)$ {
    fastcgi_pass unix:/tmp/php-70-cgi.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $DOCUMENT_ROOT$fastcgi_script_name;
    fastcgi_param PATH_INFO $2;
    include fcgi.conf;
    }
    location ~ .*.(gif|jpg|jpeg|png|bmp|swf)$ {
    expires 1d;
    }
    location ~ .*.(js|css|html|htm)?$ {
    expires 12h;
    }
    location ~ /.ht {
    deny all;
    }
    location / {
    try_files $uri $uri/ /?$args;
    }
    }

  • 相关阅读:
    叉积
    Linux IO模型
    uva10201-dp
    如何在Java内使用Protobuf
    uva10651-记忆化搜索
    ZK的几个常用方式
    uva10304-最优二叉搜索树
    uva590-DP-Always on the run
    Git神操作
    在容器内运行JVM时内存的问题
  • 原文地址:https://www.cnblogs.com/qq1069284034/p/8757890.html
Copyright © 2020-2023  润新知