location = /dailytxt { return 301 https://$host/dailytxt/; } location /dailytxt/ { proxy_pass http://127.0.0.1:8760; }