【发布时间】:2018-11-24 18:08:19
【问题描述】:
我需要从 URL 中获取参数,例如 abc=MY_STRING:
https://my-address/test?abc=MY_STRING
并且在反向代理(我的地址)上,是这样配置的:
location /test?(.*) {
proxy_pass http://local-server:1234/test?$args
}
但它不起作用。
我尝试了另一种配置:
location /test?(.*) {
proxy_pass http://local-server:1234/test?$1
}
但也没有用。
【问题讨论】:
标签: nginx nginx-reverse-proxy nginx-config