server { listen [::]:80 ipv6only=off default_server; server_name {{ inventory_hostname }}; root /srv/http/{{ inventory_hostname }}/html; location / { index index.htm index.html; error_page 404 /404.html; try_files $uri $uri.html $uri/ =404; } }