Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Correct path for data folder in nginx.conf

$
0
0
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!

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>