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