Answer the question
In order to leave comments, you need to log in
Why is nginx giving 404?
Created a directory for storing images /var/ww/stuff, where the images are located in /var/www/stuff/images. Wrote Location in nginx config file:
location /images/ {
root /var/www/stuff;
}
Answer the question
In order to leave comments, you need to log in
location /images/
- maps the site.com/images/ URL to the folder you specify in the root directive. Accordingly, it should be:
location /images/ {
root /var/www/stuff/images;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question