我想将NGINX设置为图像内容服务器。
以下是我的配置文件。
当我尝试访问http://localhost/images时,我总是遇到403 Forbidden错误。我还错过了什么?
http{
server{
listen 80;
root /Users/user/Pictures;
location /images {
autoindex on;
}
}
}
events {
worker_connections 1024;
}