From 587e05d57440fd497998851afeb718c322c4492c Mon Sep 17 00:00:00 2001 From: crybabbby Date: Thu, 14 May 2026 00:27:03 +0300 Subject: [PATCH] add nginx --- nginx.conf | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 nginx.conf diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..e7b4761 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,24 @@ +events { + worker_connections 1024; # Maximum simultaneous connections per worker +} + +http { + include mime.types; + default_type application/octet-stream; + + server { + listen 80; + server_name localhost; # Or your domain name + + location / { + root /var/www/html; # Directory where your files are located + index index.html index.htm; + } + + # Custom error page for 404 + error_page 404 /404.html; + location = /404.html { + root /usr/share/nginx/html; + } + } +}