Welcome! Log In Create A New Profile

Advanced

Re: What is the difference between alias and root

September 13, 2010 02:44PM
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]
Subject Author Posted

What is the difference between alias and root

James Matthews September 12, 2010 12:40AM

Re: What is the difference between alias and root

Igor Sysoev September 12, 2010 05:20AM

Re: What is the difference between alias and root

Ensiferous September 13, 2010 02:44PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 114
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready