diff options
Diffstat (limited to 'playbooks/templates/nginx/http.conf.j2')
| -rw-r--r-- | playbooks/templates/nginx/http.conf.j2 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/playbooks/templates/nginx/http.conf.j2 b/playbooks/templates/nginx/http.conf.j2 new file mode 100644 index 0000000..3657d35 --- /dev/null +++ b/playbooks/templates/nginx/http.conf.j2 @@ -0,0 +1,16 @@ +server { + server_name {{ item.domains | join(' ') }}; + + listen 80; + listen [::]:80; + + root /var/www/html; + index index.nginx-debian.html; + + location / { + try_files $uri $uri/ =404; + } + + access_log /var/log/nginx/{{ item.name }}/access.log; + error_log /var/log/nginx/{{ item.name }}/error.log; +} |
