nginx autoindex enabled by default and other minor refactorings