日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

nginx服务器远程无法访问,客户端连接Nginx偶尔提示无法连接到远程服务器

發布時間:2025/3/20 69 豆豆
生活随笔 收集整理的這篇文章主要介紹了 nginx服务器远程无法访问,客户端连接Nginx偶尔提示无法连接到远程服务器 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

nginx的日志沒有記錄到相關連接信息

http配置:

client_header_timeout 3m;

client_body_timeout 3m;

send_timeout 3m;

client_header_buffer_size 512k;

large_client_header_buffers 4 512k;

gzip on;

gzip_min_length 1100;

gzip_buffers 4 256k;

gzip_types text/plain;

sendfile on;

tcp_nopush on;

tcp_nodelay on;

keepalive_timeout 72000;

upstream配置:

upstream TC.DataAccess{

server 192.168.0.14:6666 weight=1 max_fails=2 fail_timeout=300s;

server 192.168.0.17:6666 weight=3 max_fails=2 fail_timeout=300s;

ip_hash;

}

server主要配置:

server {

listen 7777;

server_name TC.DataAccess;

charset utf-8;

#access_log logs/host.access.log main;

location / {

root /;

index index.html;

proxy_pass http://TC.DataAccess;

proxy_redirect off;

proxy_http_version 1.1;

proxy_set_header Connection "";

proxy_connect_timeout 70;

proxy_read_timeout 6000;

proxy_send_timeout 6000;

proxy_set_header Host $host; #:$server_port;

proxy_set_header X-Real-IP $remote_addr;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

client_max_body_size 100m;

client_body_buffer_size 10m;

proxy_buffer_size 5m;

proxy_buffers 6 1m;

proxy_busy_buffers_size 5m;

proxy_temp_file_write_size 5m;

}

}

總結

以上是生活随笔為你收集整理的nginx服务器远程无法访问,客户端连接Nginx偶尔提示无法连接到远程服务器的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。