0
点赞
收藏
分享

微信扫一扫

ingress 服务器片段

刘员外__ 2022-12-07 阅读 134

配置server内的配置

nginx.ingress.kubernetes.io/server-snippet:
location ^~ /index/common/getQandAListi {
rewrite ^(.*)$ https://www.baidu.com.com$1 permanent;
}

配置location的配置

    nginx.ingress.kubernetes.io/configuration-snippet:
rewrite ^/api/(.*)$ /$1 break; # 这个配置会放在locatl /api{}的位置下


举报

相关推荐

0 条评论