diff --git a/templates/nginx/nginx.conf.template b/templates/nginx/nginx.conf.template index 49fc0ff..5ea65f9 100644 --- a/templates/nginx/nginx.conf.template +++ b/templates/nginx/nginx.conf.template @@ -134,6 +134,14 @@ http { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Connection ""; + + {% for document in context.document_roots %} + location {{document.location}} { + root {{document.root}}; + autoindex off; + } + {%- endfor %} + {% for route in server.routes %} {% for location in route.locations %} location {{location}} {