From 71fec2446d633af455528803708231d34d1640d5 Mon Sep 17 00:00:00 2001 From: gugulethu Date: Sat, 21 Jun 2025 22:20:06 +0200 Subject: [PATCH] Update nginx.conf --- nginx.conf | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/nginx.conf b/nginx.conf index e9ce17e..1717294 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,26 +1 @@ -server { - listen 80; - server_name gugulet.hu; - - # Define the root directory for the site - root /usr/share/nginx/html; - - # Specify the index files - index index.html index.htm; - - # Handle requests - location / { - try_files $uri $uri/ /index.html; - } - - # Custom error pages - error_page 404 /404.html; - location = /404.html { - internal; - } - - # Optional: Add gzip compression for better performance - gzip on; - gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; - gzip_min_length 1000; -} +server { listen 80; server_name _; root /usr/share/nginx/html; index index.html; location / { try_files $uri $uri/ /index.html; } error_page 404 /404.html; } \ No newline at end of file