nginx 302 301

upstream joychat_rc_int {
    server 45.117.22.40:8013 weight=5 max_fails=1 fail_timeout=30s;
}

upstream joychat_clockins_int {
    server 45.117.22.40:8014 weight=5 max_fails=1 fail_timeout=30s;
}

upstream joychat_fish_int {
    server 45.117.22.40:8015 weight=5 max_fails=1 fail_timeout=30s;
}

upstream joychat_activity_int {
    server 45.117.22.40:8016 weight=5 max_fails=1 fail_timeout=30s;
}

upstream joychat_qsp_int {
    server 45.117.22.40:8017 weight=5 max_fails=1 fail_timeout=30s;
}

upstream joychat_tsq_int {
    server 45.117.22.40:8018 weight=5 max_fails=1 fail_timeout=30s;
}

upstream joychat_meeting_int {
    server 45.117.22.40:8019 weight=5 max_fails=1 fail_timeout=30s;
}

upstream joychat_api_int {
    server 45.117.22.40:8022 weight=5 max_fails=1 fail_timeout=30s;
}

upstream joychat_hcbm_int {
    server 45.117.22.40:8023 weight=5 max_fails=1 fail_timeout=30s;
}


server {
    listen 80;
    server_name jc-int.bba-app.com;
    server_name jc-api-int.bba-app.com;
    server_name jc-apps-int.bba-app.com;
    rewrite ^(.*)$  https://$host$1 permanent;
}


server {
    listen 443;
    server_name jc-int.bba-app.com;
    server_name jc-api-int.bba-app.com;
    server_name jc-apps-int.bba-app.com;

    client_max_body_size 1024m;

    ssl on;
    ssl_certificate bba-app.com/server.pem;
    ssl_certificate_key bba-app.com/server.key;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers ECDH:AESGCM:HIGH:!RC4:!DH:!MD5:!3DES:!aNULL:!eNULL;
    ssl_prefer_server_ciphers on;

    add_header X-Frame-Options SAMEORIGIN;
    proxy_set_header Referer $http_referer;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-Proto https;
    proxy_set_header X-Scheme $scheme;
    proxy_redirect off;

    location /d {
        rewrite ^(.*)$ https://jc-int.bba-app.com/hcbm/release/index.html?id=hcbm permanent;
    }
   
    location /d/ {
        rewrite ^(.*)$ https://jc-int.bba-app.com/hcbm/release/index.html?id=hcbm permanent;
    }

    location /rc/ {
        proxy_pass http://joychat_rc_int/;
    }

    location /clockins/ {
        proxy_pass http://joychat_clockins_int/;
    }

    location /tsq/ {
        proxy_pass http://joychat_tsq_int/;
    }

    location /fish/ {
        proxy_pass http://joychat_fish_int/;
    }

    location /activity/ {
        proxy_pass http://joychat_activity_int/;
    }

    location /qsp/ {
        proxy_pass http://joychat_qsp_int/;
    }

    location /meeting/ {
        proxy_pass http://joychat_meeting_int/;
    }

    location /api/ {
        proxy_pass http://joychat_api_int/;
    }

    location /hcbm/ {
        proxy_pass http://45.117.22.40:8023/hcbm/;
        proxy_redirect ~^http://([^:]+)(:\d+)?(.*)$  https://$1$3;
    }

    location / {
        deny all;
    }
    
    access_log logs/joychat_int.access.log main;

}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值