2

我是 nginx 的新手。

我需要在我的网络服务器上自动索引目录,包括子目录。所以,我像这样配置我的 niginx:

server {
    listen       80;
    server_name  collect.funshion.com;
    root         /home/html;
    access_log  /home/nginx/access.log;
    #charset koi8-r;                                                       

    location / {                                                          
        autoindex                   on;
        autoindex_exact_size        off;
        autoindex_localtime         on;
    }
}

但它只适用于根目录/,它让我感到困惑......

4

1 回答 1

1

既然你得到了 403 禁止,那可能是 nginx 用户对子目录没有足够的权限吗?

于 2012-11-02T07:02:33.310 回答