Cleaned up nginx conf.

This commit is contained in:
Bob Vandevliet 2024-06-21 17:52:29 +02:00
parent f640f6aa59
commit 44fa02ba16

View file

@ -5,19 +5,13 @@ server {
#access_log /var/log/nginx/host.access.log main; #access_log /var/log/nginx/host.access.log main;
root /usr/share/nginx/public;
location / { location / {
root /usr/share/nginx/public;
index index.html; index index.html;
ssi on; ssi on;
try_files $uri $uri/ $uri.html =404; try_files $uri $uri/ $uri.html =404;
} }
# location /includes/ {
# deny all;
# return 404;
# }
error_page 404 /404.html; error_page 404 /404.html;
location = /404.html { location = /404.html {
root /usr/share/nginx/public; root /usr/share/nginx/public;