server { listen 80 default; server_name rmt; access_log /var/log/nginx/rmt_http_access.log; error_log /var/log/nginx/rmt_http_error.log; root /usr/share/rmt/public; location / { autoindex off; } location /repo { autoindex on; } }