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