This is a remainder for me of what failed. While using stitch module for Node.js together with NginX as proxy-reverse for my application I got 404 while trying to get /application.js, except anything else being generated at run-time.
The reason was the trailing slash in proxy_pass variable. So, instead of
You should use
That fixed my issue, didn't had time to do further investigation, but that's a workaround for that issue.