• nginx 多端口 配置 多个二级域名 无效


    server {
    listen 80;
    #listen 443 ssl;
    server_name www.lovebugs.com lovebugs.com;
    #ssl on;
    ssl_certificate /etc/nginx/cert/214592172780915.pem;
    ssl_certificate_key /etc/nginx/cert/214592172780915.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;
    location / {

    		proxy_set_header X-Real-IP $remote_addr;
    
    		proxy_set_header Host $http_host;
    
    		proxy_pass http://localhost:9527;
    

    proxy_redirect off;
    break;

    	}
    

    }

    server {

    listen 80;
    #listen 443 ssl;
    server_name www.api.lovebugs.com api.lovebugs.com;
    #ssl on;
    ssl_certificate  /etc/nginx/cert/214592172780915.pem;
    ssl_certificate_key /etc/nginx/cert/214592172780915.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;
    location / {
    
    	proxy_set_header X-Real-IP $remote_addr;
    
    	proxy_set_header Host $http_host;
    
    	proxy_pass http://localhost:9528;
    

    proxy_redirect off;
    break;
    }
    }

    server {
    listen 80;
    #listen 443 ssl;
    server_name www.manage.lovebugs.com manage.lovebugs.com;
    #ssl on;
    ssl_certificate /etc/nginx/cert/214592172780915.pem;
    ssl_certificate_key /etc/nginx/cert/214592172780915.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;
    location / {

    	proxy_set_header X-Real-IP $remote_addr;
    
    	proxy_set_header Host $http_host;
    
    	proxy_pass http://localhost:8080; 
    

    proxy_redirect off;
    break;

    }
    

    }

    server {
    listen 8080;
    server_name localhost;
    #ssl on;
    #ssl_certificate /etc/nginx/cert/214592172780915.pem;
    #ssl_certificate_key /etc/nginx/cert/214592172780915.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;
    root /app/blog-manage/dist;
    # root /usr/share/nginx/html;
    index index.html index.htm;

    }

  • 相关阅读:
    【FPGA篇章四】FPGA状态机:三段式以及书写方法
    【FPGA篇章三】FPGA常用语句:Verilog基本语法要素
    【FPGA篇章二】FPGA开发流程:详述每一环节的物理含义和实现目标
    【FPGA篇章一】FPGA工作原理:详细介绍FPGA实现编程逻辑的机理
    学习python随笔记
    Spring中的@Bean注解、@Configuration注解、@Value
    什么是Maven项目
    SpringBoot(四)thymeleaf+MyBatis+MySql
    SpringBoot(三)thymeleaf+JPA+MySql
    SpringBoot(二)thymeleaf模板的引入
  • 原文地址:https://www.cnblogs.com/WhiteHorseIsNotHorse/p/9031208.html
Copyright © 2020-2023  润新知