Good Directive vs Bad Directives

Francis Daly francis at
Thu May 3 22:26:49 UTC 2012

On Thu, May 03, 2012 at 06:04:07AM -0700, antituhan wrote:

Hi there,

> Ok thanks francis, got that point :) If "try_files" can do, we don't need
> using "if", and if "try_files" can't do, we just insert "if" directive (only
> if very needed). Isn't it ?

More or less, yes.

Use the right tool for the task. Sometimes try_files is the right one,
sometimes it isn't.

Francis Daly        francis at

More information about the nginx mailing list