When nginx serves a directory with autoindex, it will list files, but when index.html exists, the browser will load that file. I want it to ignore it.
server {
listen 80;
server_name herbert;
location / {
root /srv/www;
index index.htm index.html;
add_header Cache-Control no-cache;
expires 300s;
}
location /site-dumps/ {
root /srv/www/;
autoindex on;
}
}