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;
    }

  • 相关阅读:
    JS焦点图手动切换
    Cookie
    javaScript字符串方法(常用的)
    javaScript函数
    JavaScript条件语句和循环语句
    JavaScript基本的数据类型
    数据库的四个基本语句
    CSS文本样式
    HTML图片
    C#集合
  • 原文地址:https://www.cnblogs.com/gpfeisoft/p/5882586.html
Copyright © 2011-2022 走看看