Here is the conf:
location /Desktop/ {
root c:/Users/elqstux/;
}
the file path is C:\Users\elqstux\Desktop\wy.html
.
when i access http://127.0.0.1/Desktop/wy.html
in browser, i got 404 Not Found
.
who can tell what's wrong?
By default the file is named nginx. conf and for NGINX Plus is placed in the /etc/nginx directory. (For NGINX Open Source , the location depends on the package system used to install NGINX and the operating system. It is typically one of /usr/local/nginx/conf, /etc/nginx, or /usr/local/etc/nginx.)
Use double back slashes to avoid certain character issues (\r is a carriage return.):
root C:\\Users\\elelqstux;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With