root works, alias doesn't

Valentin V. Bartenev vbart at
Wed Oct 2 18:22:46 UTC 2013

On Wednesday 02 October 2013 20:22:17 Grant wrote:
> That's true.  Is alias or root preferred in this situation for performance?

The "root" directive is better from any point of view.  It is less complicated
and bugfree ("alias" has bugs, see ).

You should always prefer "root" over "alias" when it is possible.

  wbr, Valentin V. Bartenev

More information about the nginx mailing list