0

关于 nginx 反向代理,我正在努力从 NGINX conf.d 中的请求 URL 获取参数值

我的网址是https://abcd.cloudfront.net/app/dashboards#/view/aa501030-e93e-11eb-bdcf-531cdb7c714a?param1="somecryptedvalue=="

这里 URL 中的 aa501030-e93e-11eb-bdcf-531cdb7c714a 是动态部分。我只需要 param1 的值。

如果 URL 只是https://abcd.cloudfront.net?param1="somecryptedvalue=="

if ($args ~ "^url=(.+)") { #gets the "url" get parameter set $key1 $1;

}

4

0 回答 0