server { listen 80; listen [::]:80; server_name localhost; root /srv/www/localhost; index index.html index.htm; location /file1.txt { } location /file2.txt { proxy_buffers 8 1m; proxy_pass http://localhost/file1.txt; } }