Files
infra/ansible/roles/nginx/tasks/templates/vhost.conf.j2

12 lines
272 B
Django/Jinja

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;
}
}