Re: Root inside Location Block? Pitfalls says NO, Beginner’s Guide says YES

2013-09-19 Thread chrisrob
Thanks Maxim, 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 doc

Root inside Location Block? Pitfalls says NO, Beginner’s Guide says YES

2013-09-19 Thread chrisrob
The resulting configuration of the server block should look like this: server { location / { root /data/www; } location /images/ { root /data; } } So I'm wondering which is right? Cheers, chrisrob Posted at Nginx Forum: http://forum.nginx.org/read.php?2,2429