Location not called properly

Francis Daly francis at daoine.org
Sun Oct 23 23:32:42 UTC 2011

On Sun, Oct 23, 2011 at 04:13:37PM -0400, TECK wrote:

Hi there,

> I'm trying to call a location of this format:
> location = /somedir/file1.php {
>     try_files @cache =404;
> }

Only the last parameter of try_files is "magic". Any others that start
with @ or = will probably not do what you want.

> For some reason is not working, can you please let me know what is the
> proper syntax?

It's not immediately clear what it is that you want, that is different
from "include fastcgi.conf" at server level and "fastcgi_pass fastcgi"
in your exact-match locations.

If that isn't adequate, can you describe more?

Good luck,

Francis Daly        francis at daoine.org

More information about the nginx mailing list