Загрузить файлы в « z2/nginx»

This commit is contained in:
Yan Kasabutski 2025-04-10 08:23:05 +00:00
parent ddf6e217ac
commit 34aac65081
2 changed files with 49 additions and 0 deletions

26
z2/nginx/default.conf Normal file
View File

@ -0,0 +1,26 @@
# 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;
}
}

23
z2/nginx/nginx.conf Normal file
View File

@ -0,0 +1,23 @@
# nginx.conf
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
# Логирование
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/conf.d/*.conf;
}