*) Bugfix: the "try_files" directive inside a nested location given by a regular expression worked incorrectly if the "alias" directive was used in the outer location.
from: http://nginx.org/en/CHANGES-1.8
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 /home/mysite/www/js/js/whatever.js
I have no idea if it's substantiated but I've read accusations that it's so you'll pay for the commercial version. Apparently the open source version ignores the TTL and just caches it until you restart the process.
8 comments
[ 1.4 ms ] story [ 35.6 ms ] thread*) Bugfix: the "try_files" directive inside a nested location given by a regular expression worked incorrectly if the "alias" directive was used in the outer location. from: http://nginx.org/en/CHANGES-1.8