GnoseedGnoseed
DevOps · Flashcard

How does the alias directive differ from root when mapping a location to disk?

Why this is the answer

For location /i/ { alias /data/images/; } a request /i/a.png maps to /data/images/a.png, replacing the matched /i/. Appending the whole URI is root's behavior, not alias's; both read from disk; and alias is not restricted to regex locations.

Read more in the docs
Study in Gnoseed →