zoukankan      html  css  js  c++  java
  • nginx1.15.10配置使用非https访问返回403

    nginx版本号:nginx version: nginx/1.15.10

    server {
    listen 443 default ssl;
    server_name app.test.com;
    if ($host != 'app.test.com'){
    return 403;
    }
    ssl_certificate /usr/local/nginx/ssl/app.test.com.crt;
    ssl_certificate_key /usr/local/nginx/ssl/app.test.com.key;
    ssl_session_timeout 5m;
    ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_prefer_server_ciphers on;
    access_log logs/host.access.log;
    location / {
    proxy_pass http://127.0.0.1;
    }
    }
    

      

  • 相关阅读:
    datagrid
    SQL语句
    JavaScript事件
    DOM和BOM
    JavaScript基础知识
    css
    网络编程常识
    集合框架
    多线程常识
    面向对象常识
  • 原文地址:https://www.cnblogs.com/caidingyu/p/11555443.html
Copyright © 2011-2022 走看看