Hi, I know this topic is old but I just found it while searching for solution for exactly the same problem. Finally I figured it out how to fix the 404 problem for autoindexing so I'm posting it so it'll maybe help someone someday :). It seems that one have to move root line out of locations. Here's my config before: server { listen 80; server_name files.barszcz.info; errby barszcz - How to...