On Thu, Sep 19, 2013 at 06:57:35AM -0400, chrisrob wrote:
which gives this as its example of a config file:
}
So I’m wondering which is right?
As you can see, the example in begginners guide uses different
roots for locations configured, and hence it’s very different from
the example provided at Pitfalls wiki page.
Using the “root” directive inside a location block isn’t bad per
se. It’s bad if you repeat it needlessly instead of using single
root inside a server{} block.
That’s pretty obvious I suppose - providing that a root at Server
context
level is always the default in absence of root in Location Block.
I had only been reading the docs for 30 mins, after downloading nginx,
and
that just jumped out at me. I’d better make sure I read all the docs
before
posting here again - but I still think “Pitfalls” could be more
specific,
moan, moan…