diff --git a/ z2/nginx/default.conf b/ z2/nginx/default.conf new file mode 100644 index 0000000..56bc1af --- /dev/null +++ b/ z2/nginx/default.conf @@ -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; + } +} diff --git a/ z2/nginx/nginx.conf b/ z2/nginx/nginx.conf new file mode 100644 index 0000000..c4f9ae5 --- /dev/null +++ b/ z2/nginx/nginx.conf @@ -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; +}