From fafd475f6b65b26c29ea005c0c907f704cd44651 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 28 Aug 2014 12:27:24 +0300 Subject: [PATCH] roles/nginx: Add index to vhost config Without this, all requests to directory URIs throw 403 errors due to directory listings not being allowed. Signed-off-by: Alan Orth --- roles/nginx/templates/vhost.conf.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/nginx/templates/vhost.conf.j2 b/roles/nginx/templates/vhost.conf.j2 index 5bbe071..c5fe70b 100644 --- a/roles/nginx/templates/vhost.conf.j2 +++ b/roles/nginx/templates/vhost.conf.j2 @@ -8,6 +8,8 @@ server { server_name {{ domain_name }} {{ domain_aliases }}; + index index.php index.html; + access_log /var/log/nginx/{{ domain_name }}-access.log; error_log /var/log/nginx/{{ domain_name }}-error.log;