These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi! First, you’ll want to find a RegEx pattern that matches /val_1/val_2 (with an optional trailing backslash): ^/(.*?)/(.*?)/?$, then you’ll want to map val_1 and val_2 to a query string:
&$args appends the rest of the original query string to the request, so that for example http://domain.com/val_1/val_2/?something=abcd works as expected.
Make sure you restart nginx after editing the config file.
The developer cloud
Scale up as you grow — whether you're running one virtual machine or ten thousand.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.