r/nginx • u/mimar77 • Jan 25 '22
Allow randomized URL
I’m fairly new to Nginx so I hope this is an easy question for some of you. Using a location block I would like to proxy_pass a URL in which the first part of the URL is static and the last part is a random string. The actual string would look like /_set?authz=abc123 where abc123 is the random string. In my simple mind I would think a * wildcard after the = would work but it does not. Any help would be appreciated.
1
u/kbetsis Jan 25 '22
The location part is the one that is of interest to you. Simply define a / and it will proxy pass everything under the fqdn to the desired back end. The other information stated are application parameters used by the app itself.
-12
Jan 25 '22
Buahaha what a joke... Go learn to code or pay someone to do it.
4
u/palindromeotter33 Jan 25 '22
tdotr6
Asking questions is part of learning to code, and this is an appropriate place to ask questions about NGINX–even, or especially, beginner questions.
6
u/merreborn Jan 25 '22
Normally this should be as simple as
location /_set {}Usually you wouldn't touch the query string in your location block.