summaryrefslogtreecommitdiff
path: root/playbooks/templates/nginx/http.conf.j2
blob: 3657d3598106913c323a9c7ac4b153642e3a0667 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
}