How to exclude some url from the location?

I set up a proxy in Nginx for mail Yandex:
location /mail {

Now when coming to the request is sent to and gives a 404, and should refer to, that is, exclude the "/mail" from the query. How to implement it?
June 5th 19 at 21:09
1 answer
June 5th 19 at 21:11

Find more questions by tags Nginx