Directive reference
root
Builds a filesystem path by appending the request URI.
| Syntax | root path; |
|---|---|
| Contexts | httpserverlocationif in location |
| Default | root html; |
Behavior
The path may contain variables. For a location whose URI prefix must be replaced rather than appended, use alias.
Example
location /images/ {
root /srv/www;
}