try_files does not have any effect on existing files

weheartwebsites nginx-forum at
Sun Feb 19 22:58:16 UTC 2017

ouch sorry all good - I had a special location = /robots.txt block which was
causing the try_files directive not to be called. removing that (or testing
with a different filename) worked :)

Posted at Nginx Forum:,272503,272510#msg-272510

More information about the nginx mailing list