EE v4 custom reverse proxy (to couchdb or to regular site) on nginx does not work


My final goal is to reverse proxy from a site subdirectory (/test) to couchdb instance (at localhost:) but it does not work/

I also tried very simple example and it did not work:
location /somepath {

I used EEv4 with redis cache and LE SSL (straight from the EE v4).
I also use Cloudflare.

I saved the proxies at

I restarted the site nginx.

For all the requests I get wordpress 404 page.

What should I do?