From a6a52ced1078edb444431d9014169e44ed99c455 Mon Sep 17 00:00:00 2001 From: Yan Kasabutski Date: Mon, 17 Mar 2025 23:50:07 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20z1/default.conf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- z1/default.conf | 51 +++++++++++++++++++++++++++---------------------- 1 file changed, 28 insertions(+), 23 deletions(-) diff --git a/z1/default.conf b/z1/default.conf index 7a219e9..9e49b1d 100644 --- a/z1/default.conf +++ b/z1/default.conf @@ -1,23 +1,28 @@ -# default.conf -server { - listen 80; - - server_name localhost; - - # Путь до вашего веб-приложения - location / { - root /usr/share/nginx/html; - index index.html index.htm; - } - - # Для обработки ошибок - error_page 404 /404.html; - location = /404.html { - root /usr/share/nginx/html; - } - - error_page 500 502 503 504 /50x.html; - location = /50x.html { - root /usr/share/nginx/html; - } -} +# default.conf +server { + listen 80; + + server_name localhost; + + # путь до веб-приложения + + + location / { + root /usr/share/nginx/html; + index index.html index.htm; + } + + # для обработки ошибок + + + + error_page 404 /404.html; + location = /404.html { + root /usr/share/nginx/html; + } + + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/share/nginx/html; + } +}