I'm trying to get an nginx server going for web-app testing purposes, but for some reason I keep receiving a 403: Forbidden error. I've stripped this down to what I think is there bare bones of what should work, meaning there's just an index.html file, no back end server or anything else. Here is my nginx.conf file:
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 8080;
server_name localhost;
root /Users/turner/Documents/;
index index.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
include servers/*;
There is an index.html in my Documents folder, so that isn't the problem. I've looked at a plethora of questions on here and elsewhere about this issue, but either they don't deal with my problem or I am not yet familiar enough with nginx to make use of them.
If there's any further information I can provide that would make this question better please let me know.
也许nginx用户没有访问此目录的适当权限(或已使用ecryptfs加密)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.