Обновить z1/default.conf
This commit is contained in:
parent
9fee463174
commit
a6a52ced10
@ -1,23 +1,28 @@
|
|||||||
# default.conf
|
# default.conf
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
|
||||||
# Путь до вашего веб-приложения
|
# путь до веб-приложения
|
||||||
location / {
|
|
||||||
root /usr/share/nginx/html;
|
|
||||||
index index.html index.htm;
|
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;
|
error_page 404 /404.html;
|
||||||
location = /50x.html {
|
location = /404.html {
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
error_page 500 502 503 504 /50x.html;
|
||||||
|
location = /50x.html {
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user