Question 1 of 6
location /img/ { alias /data/pictures/; } — a request for
/img/cat.png reads which file?
alias replaces the whole location prefix; root appends to it.
alias strips /img/ from the request path and maps the remainder directly. With root /data/pictures instead, the same request would read /data/pictures/img/cat.png — the classic confusion.
Review this lesson