我是 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;
}
}
但它只适用于根目录/,它让我感到困惑......