nginx.conf: добавлен upstream fastcgi

This commit is contained in:
Наиля Алашкова 2025-10-17 08:31:26 +03:00
parent 9af14689f0
commit b0a22acf92

View file

@ -27,7 +27,7 @@ http {
default_type application/octet-stream; default_type application/octet-stream;
sendfile on; sendfile on;
gzip on; gzip on;
# text/html doesn't need to be defined there, it's compressed always # text/html doesn't need to be defined there, it's compressed always
@ -36,13 +36,27 @@ http {
# gzip_comp_level 9; # gzip_comp_level 9;
include /etc/nginx/sites-enabled.d/*.conf; include /etc/nginx/sites-enabled.d/*.conf;
upstream fastcgi {
server 127.0.0.1:9009;
server 127.0.0.1:9010;
server 127.0.0.1:9011;
server 127.0.0.1:9012;
server 127.0.0.1:9013;
server 127.0.0.1:9014;
server 127.0.0.1:9015;
server 127.0.0.1:9016;
server 127.0.0.1:9017;
server 127.0.0.1:9018;
}
server { server {
listen 80; listen 80;
server_name localhost; server_name localhost;
client_max_body_size 10M;
location / { location / {
fastcgi_pass localhost:9009; fastcgi_pass fastcgi;
include fastcgi_params; include fastcgi_params;
} }
} }
} }