The `root /etc/nginx;` directive sets the server's root directory for static files. The configuration doesn't have a root location `/`, it will be set globally set. A request to `/nginx.conf` would resolve to `/etc/nginx/nginx.conf`.
server {
root /etc/nginx;
location /hello.txt {
try_files $uri $uri/ =404;
proxy_pass http://127.0.0.1:8080/;
}
}Source: Reverse Proxy Misconfigurations/README.md in PayloadsAllTheThings. From PayloadsAllTheThings by Swissky and contributors. MIT License, Copyright (c) 2019 Swissky.