示例1
root html/; location /first { rewrite /first(.*) /second$1 last;return 200 'first!';} location /second { rewrite /second(.*) /third$1 break;return 200 'second!';} location /third {return 200 'third!';}访问/first/1.txt的结果为:html/third/1.txt的内容
访问/second/1.txt的结果为:html/third/1.txt的内容
访问/third/1.txt的结果为:third的内容
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。