0

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;

}

prashant thakre
  • 5,061
  • 3
  • 26
  • 39
  • 1
    Anything after the `#` character is the [**URL fragment**](https://en.wikipedia.org/wiki/URI_fragment) and is not received by the server, so Nginx never sees it. – Richard Smith Jul 26 '21 at 14:30
  • Thanks Richard ,So is it possible if I am sending without Hash and setting hash in my proxy_pass, actually i am using reverse proxy to add Kibana link and hash is required for it. – prashant thakre Jul 26 '21 at 14:47

0 Answers0