• 传统mvc platform与前后端分离项目smart 共用域名nginx配置


    #server {
    #         listen     80;
    #        server_name  139.129.100.155 rjhaasz.cn;
    #        rewrite ^(.*)$  https://$host$1 permanent; 
    #        }
    
    
      server {
            listen     80;
            listen       443;
            server_name  139.129.100.155 rjhaasz.cn;
            ssl                  on;
            ssl_certificate      cert/server.crt;
            ssl_certificate_key  cert/server.key;        
            ssl_session_timeout  5m;
            ssl_protocols TLSv1;
            ssl_ciphers  HIGH:!aNULL:!MD5;
            ssl_prefer_server_ciphers   on;
    
            autoindex on; # 显示目录
            autoindex_exact_size on; # 显示文件大小
            autoindex_localtime on; # 显示文件时间
    
            root "/home/jiujiang/spring-smart-html/";
            index  index.html index.htm;
    
             location /platform/ {
                  client_max_body_size    16m;
                  client_body_buffer_size 128k;
                  proxy_pass                          http://localhost:8084/platform/;
                  proxy_set_header        Host $host;
                  proxy_set_header        X-Real-IP $remote_addr;
                  proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
                  proxy_set_header           X-Forwarded-Proto https;
                  proxy_next_upstream   off;
    
                  proxy_connect_timeout   30;
                  proxy_read_timeout      300;
                  proxy_send_timeout      300;
            }
    
            location /smart/ {
                 proxy_pass http://localhost:8080/spring-smart-web/smart/;
                 proxy_set_header   Host    $host;
                 proxy_set_header   X-Real-IP   $remote_addr;
                 proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
                 proxy_connect_timeout 300;
                 proxy_send_timeout 300;
                 proxy_read_timeout 300;
    
            }
    
    
        }
    

      

  • 相关阅读:
    20170809--JS操作Select备忘
    20160711--C# 委托的三种调用示例(同步调用 异步调用 异步回调)【转载】
    C# 内存建表备忘
    富文本编辑器 CKeditor 配置使用
    20160520—JS打分控件
    20160513--js 弹出窗口带有iframe控件 备忘
    chart 简单应用
    mvc 简单整理
    ObjectDatasourse 的绑定及显示
    GridView 详述
  • 原文地址:https://www.cnblogs.com/yun965861480/p/10885157.html
Copyright © 2020-2023  润新知