How to find request param in nginx reverse proxy

304 Views Asked by At

Regarding nginx reverse proxy I am struggling to get the parameters values from the request URL in NGINX conf.d

My URL is https://abcd.cloudfront.net/app/dashboards#/view/aa501030-e93e-11eb-bdcf-531cdb7c714a?param1="somecryptedvalue=="

here aa501030-e93e-11eb-bdcf-531cdb7c714a in URL is the dynamic part. I just need the value of param1.

the below code worked fine for me if URL is just https://abcd.cloudfront.net?param1="somecryptedvalue=="

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

}

0

There are 0 best solutions below