在location中设置 autoindex on;

在这里插入图片描述
这样,当我访问http://192.168.233.131/dynamic时,就会展示dynamic下的所有文件。
在这里插入图片描述

更多推荐