4 ms·
After an upgrade to 1.8.1 our rewrites (alias+regexp+try_files) stopped working.
by vojtech_kurka 11y ago
After an upgrade to 1.8.1 our rewrites (alias+regexp+try_files) stopped working.
- lfam 11y agoRelated to this? *) 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 http://nginx.org/en/CHANGES-1.8
- vojtech_kurka 11y agoYes, probably related. I reported it here: https://forum.nginx.org/read.php?11,264181 https://forum.nginx.org/read.php?11,264181
- r1ch 11y agoFrom 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
- vojtech_kurka 11y agoYou're right, thank you. The aliases are completely useless. It's just strange to introduce such a change in a "stable" release.