0
我是nginx的新手。Nginx配置:autoindex子目录
我需要在我的web服务器上自动索引目录,包括子目录。 因此,配置我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;
}
}
,但它只能在根目录/,这让我感到困惑......
当我访问subdirs,刚刚得到403 Forbidden – shymonk