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; + } +}