James Matthews Wrote:
-------------------------------------------------------
> I was wondering what the difference was between
> alias and root in the server
> block on nginx was?
There's a subtle difference.
[code]
# This will result in files being searched for in /foo/bar/bar as the full URI is appended.
location /bar {
root /foo/bar;
}
# This will result in files being searched for in /foo/bar as only the URI part after /bar is appended.
location /bar {
alias /foo/bar;
}
[/code]