Correct path for data folder in nginx.conf
May 24, 2019 10:58PM
Nginx 1.16 on Windows 10
trying to implement "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:, 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
root 'C:/nginx-1.16.0/data/www';

nginx for Windows
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 101
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready