apache httpd:
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.html index.php index.htm
</IfModule>
还有options +Indexs,这个是表示能够列举出目录。去掉这个就不能列举出目录。
nginx:
location xxx{
index xxx;//同apache的dir_module
autoindex on;//同apache的options
}
还有options +Indexs,这个是表示能够列举出目录。去掉这个就不能列举出目录。