发布时间: 2023-12-15 文章作者: myluzh 分类名称: Nginx 朗读文章
root@iZbp12bkuvg20e1j3y9gtvZ:/etc/nginx/conf.d# cat prd-all.conf upstream prd-nginx-server { server 172.30.82.213:80 max_fails=5 fail_timeout=120s; server 172.30.172.135:80 max_fails=5 fail_timeout=120s; server 172.29.241.160:80 max_fails=5 fail_timeout=120s; keepalive 10; keepalive_requests 100; } server { listen 80; server_name *.sxhlcloud.com; client_max_body_size 10m; location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://prd-nginx-server/; } }
upstream prd-nginx-server { server 172.30.82.213:80; server 172.30.172.135:80; check interval=1000 rise=1 fall=1 timeout=1000 type=http default_down=false; check_http_send "GET / HTTP/1.0\r\n\r\n"; check_http_expect_alive http_2xx http_3xx; } server { listen 80; server_name *.sxhlcloud.com; client_max_body_size 10m; location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://prd-nginx-server/; } }
发表评论