我想创建一个映射,这样,如果请求带有路径,some-path
则将其附加到proxy_pass
URL。例如如下所示:
location /hi/[some-path] {
proxy_pass https://mywebsite.com/[some-path]
}
有办法吗?可能吗?
Incoming Request:
https://foo.bar/hi/some-path/1/2/3
Proxy Passed To:
https://mywebsite.com/some-path/1/2/3