如何配置nginx列出目录内容

时间:2016-03-18 09:54:33

标签: nginx

我想将NGINX设置为图像内容服务器。

以下是我的配置文件。

当我尝试访问http://localhost/images时,我总是遇到403 Forbidden错误。我还错过了什么?

http{
    server{
            listen  80;
            root    /Users/user/Pictures;
            location /images {
                    autoindex on;
            }
    }
}

events {
    worker_connections  1024;
}

0 个答案:

没有答案