Welcome! Log In Create A New Profile

Advanced

Documentation / Beginner's Guide error

July 23, 2014 01:35PM
Just getting started with NGINX and reading the Beginner's Guide.

The guide says to create two directories:
/data/www
/data/images

Then goes on to tell you to setup two locations:
location / {
root /data/www;
}

and

location /images/ {
root /data;
}

Then says the results should look like this:

server {
location / {
root /data/www;
}

location /images/ {
root /data;
}
}

Isn't the second location root path incorrect? It is missing the /images subfolder.
Subject Author Posted

Documentation / Beginner's Guide error

ericreiss July 23, 2014 01:35PM

Re: Documentation / Beginner's Guide error

ericreiss July 23, 2014 01:50PM

Re: Documentation / Beginner's Guide error

Maxim Dounin July 23, 2014 01:54PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 281
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready