From my read of the docs, try_files expands aliases, so the alias directives in your location blocks are unnecessary, causing nginx to look for  &#x2F;home&#x2F;mysite&#x2F;www&#x2F;js&#x2F;js&#x2F;whatever.js