zoukankan      html  css  js  c++  java
  • Nginx

    1. 当访问 https://xxx.com/ccb/xxx/xxx.html 跳转到 https://www.baidu.com 返回 301 重定向。

    location /ccb/ {
        return 301 https://www.baidu.com;
        proxy_pass http://192.168.118.14/;
        index  index.html index.htm;
    }
    

    2. 当访问 https://xxx.com/ccb/activity/xxx.html 跳转到 https://www.baidu.com 返回 302 重定向。

    location /ccb/ {
        rewrite /ccb/activity(.*)$ https://www.baidu.com break;
        proxy_pass http://192.168.118.14/;
        index  index.html index.htm;
    }
    
  • 相关阅读:
    每日日报
    每日日报
    每日日报
    每日日报
    每日日报
    FM
    GBDT+LR
    推荐系统架构设计
    DSSM双塔模型
    git
  • 原文地址:https://www.cnblogs.com/hukey/p/12654700.html
Copyright © 2011-2022 走看看