zoukankan      html  css  js  c++  java
  • Windows下Nginx配置SSL实现多域名Https访问

    ssl 证书目录

    在E:phpStudy ginxconf ginx.conf 文件配置

        # HTTPS server
        #
        server {
            listen       80;
           listen       443;
            server_name  www.123.com;
            root   "E:/phpStudy/www/www.123.com";
    
            ssl                  on;
            ssl_certificate      E:/phpStudy/nginx/ssl/www.123.com_bundle.crt;
            ssl_certificate_key  E:/phpStudy/nginx/ssl/www.123.com.key;
    
            ssl_session_timeout  5m;
    
            ssl_protocols  SSLv2 SSLv3 TLSv1;
            ssl_ciphers  HIGH:!aNULL:!MD5;
            ssl_prefer_server_ciphers   on;
    
            location / {
                root   "E:/phpStudy/www/www.123.com";
                index  index.html index.htm;
            }
        }    
        
        # HTTPS server
        #
        server {
            listen       80;
          listen       443;
            server_name  www.456.com;
            root   "E:/phpStudy/www/www.456.com";
            
            ssl                  on;
            ssl_certificate      E:/phpStudy/nginx/ssl/www.456.com_bundle.crt;
            ssl_certificate_key  E:/phpStudy/nginx/ssl/www.456.com.key;
    
            ssl_session_timeout  5m;
    
            ssl_protocols  SSLv2 SSLv3 TLSv1;
            ssl_ciphers  HIGH:!aNULL:!MD5;
            ssl_prefer_server_ciphers   on;
    
            location / {
                root   "E:/phpStudy/www/www.456.com";
                index  index.html index.htm;
            }
        }    

    效果:

  • 相关阅读:
    python之jupyter
    python处理图片
    python之图片指纹(唯一性的)
    python之操作elasticsearch7.6.0
    elasticsearch之索引
    elasticsearch
    Nginx 出现 403 Forbidden解决方案
    centos 防火墙命令
    centos nginx常用的命令
    搭建centos nginx环境
  • 原文地址:https://www.cnblogs.com/linyusong/p/8288419.html
Copyright © 2011-2022 走看看