请求的 url: http://ip:port/a/b/c 跳转的 url: http://ip:port/mothed=a&guid=b&entity=c
大神们指点指点,不胜感激
1
march13th 2020 年 7 月 22 日
mark 等待用例
我目前还没出现这种需求过 |
2
GM 2020 年 7 月 22 日 location ~ ^/(?<method>.+)/(?<guid>.*)/(?<entity>.*)$ {
proxy_pass http://ip:port/method=$method&guid=$guid&entity=$entity; } |
3
zarte 2020 年 7 月 22 日
一般是把 /a/b/c 变成 host?path=/a/b/c 这样
|
4
byzf 2020 年 7 月 22 日
你这个路径里是不是少了个?.
|
5
TripleZ 2020 年 7 月 22 日 via iPhone
二楼正解
|