From 64f0adc8bb8d758c07fdd89b937466b1ab5ab43e Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Wed, 9 Jul 2025 14:48:08 +0300 Subject: Improve nginx.conf --- templates/usr_local_etc_nginx_nginx.conf.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/usr_local_etc_nginx_nginx.conf.j2 b/templates/usr_local_etc_nginx_nginx.conf.j2 index 333e641..692f5a2 100644 --- a/templates/usr_local_etc_nginx_nginx.conf.j2 +++ b/templates/usr_local_etc_nginx_nginx.conf.j2 @@ -22,13 +22,13 @@ http { server { listen 80; - server_name jan.systems; + server_name jan.systems pursotin.jan.systems local.jan.systems; root /usr/local/www/jan.systems; index index.html; location / { - try_files $uri $uri/ =404; + try_files $uri $uri.html $uri/ =404; } access_log /var/log/nginx/jan.systems/access.log; @@ -38,7 +38,7 @@ http { {% for jail in jails -%} server { listen 80; - server_name {{ jail.name }}.local.jan.systems; + server_name {{ jail.name }}.jan.systems {{ jail.name }}.local.jan.systems; location / { proxy_pass http://{{ jail.ip }}; -- cgit v1.3