zoukankan      html  css  js  c++  java
  • https和http共存的nginx配置


    server {
            listen       80;
            listen      443 ssl;
            server_name  test.xx.com;
            index index.html index.htm index.php;
            root /usr/local/default;
            location ~ .*.(php|php5)?$
            {
                    #fastcgi_pass  unix:/tmp/php-cgi.sock;
                    fastcgi_pass  127.0.0.1:9000;
                    fastcgi_index index.php;
                    include fastcgi.conf;
            }
            location ~ .*.(gif|jpg|jpeg|png|bmp|swf)$
            {
                    #expires 30d;
            }
            location ~ .*.(js|css)?$
            {
                    #expires 1h;
            }
           
            access_log  logs/test.access.log;
            ssl_certificate /x.com_bundle.crt;
            ssl_certificate_key /x.com.key;
            ssl_session_timeout  5m;
            ssl_protocols  TLSv1 TLSv1.1 TLSv1.2;
            ssl_ciphers AESGCM:ALL:!DH:!EXPORT:!RC4:+HIGH:!MEDIUM:!LOW:!aNULL:!eNULL;
            ssl_prefer_server_ciphers   on;
    }

  • 相关阅读:
    Vue3+Element-Plus-admin
    uniapp UI库推荐 uView官网/文档
    js 获取本月月初和月末时间操作
    el-dialog 无法弹出来
    Vue核心技术 Vue+Vue-Router+Vuex+SSR实战精讲
    sed 相关命令
    docker 启动 ubuntu
    vue 配置 history 模式
    typescript 相关
    fiddler 图片下载
  • 原文地址:https://www.cnblogs.com/gpfeisoft/p/5882586.html
Copyright © 2011-2022 走看看