From 6060bfe17ecc4cb8d71ffede5a7c3c462961b878 Mon Sep 17 00:00:00 2001 From: Carmine Savino Date: Fri, 23 Jan 2026 08:44:55 +0100 Subject: [PATCH] aggiunto il file nginx.conf per configurare il server web con gestione degli errori e routing --- nginx.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 nginx.conf diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..b130e24 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,15 @@ +server { + listen 80; + server_name localhost; + + location / { + root /usr/share/nginx/html; + index index.html index.htm; + try_files $uri $uri/ /index.html; + } + + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/share/nginx/html; + } +} \ No newline at end of file