Correct path for data folder in nginx.conf
May 24, 2019 10:58PM
Nginx 1.16 on Windows 10
trying to implement http://nginx.org/en/docs/beginners_guide.html "serving static content",

http {
server {
location / {
root C:/nginx-1.16.0/data/www; #actual folder
index index.html;
}

location /images/ {
root /data;
}
}
}

Whenever i start localhost, I keep getting
[error] 11876#14120: *10 "C:/data/www/index.html" is not found (3: The system cannot find the path specified), client: 127.0.0.1, server: , request: "GET / HTTP/1.1", host: "localhost"

even through I explicitly set C:/nginx-1.16.0/data/www!
Re: Correct path for data folder in nginx.conf
May 25, 2019 04:42AM
Try
root 'C:/nginx-1.16.0/data/www';

---
nginx for Windows http://nginx-win.ecsds.eu/
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 292
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