How to create a location in nginx?

Good day!
I'm just starting to deal with nginx and I have following question:
How to describe the location to handle server/api/(any word) that you would like links to
all in one location?
April 19th 20 at 12:23
2 answers
April 19th 20 at 12:25
April 19th 20 at 12:27
location /server/api/ {

Find more questions by tags Nginx