Directive reference
alias
Replaces the matched location with a filesystem path.
| Syntax | alias path; |
|---|---|
| Contexts | location |
| Default | none |
Behavior
Unlike root, alias replaces the matched location prefix. In a regular-expression location, captures can be used in the path.
Example
location /downloads/ {
alias /srv/files/;
}