nignx 获取get 请求问号后面的参数
$arg_xxxxx 就好了。 例如:
location /list/still {
alias /v4/$arg_categoryCode/still/list_$arg_p_idx.json;
}
可以获取 http:////list/still?categoryCode=xxxx&p_idx=1 的参数
$arg_xxxxx 就好了。 例如:
location /list/still {
alias /v4/$arg_categoryCode/still/list_$arg_p_idx.json;
}
可以获取 http:////list/still?categoryCode=xxxx&p_idx=1 的参数