私はnginxの初心者です。
サブディレクトリを含めて、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;
}
}
しかし、それはルートディレクトリ/でのみ機能し、混乱しました...