访问web提示如下错误:
nginx日志报upstream timed out (110: Connection timed out) while reading response header错误。
环境:nginx做代理,转给apache
解决办法:
1、原因在于nginx proxy的超时时间太短,建议修改如下配置文件。
[[email protected] ~]# vi /usr/local/kk-mail/config/nginx/proxy.conf proxy_connect_timeout 600; proxy_read_timeout 600; proxy_send_timeout 600; [[email protected] ~]# vi /usr/local/kk-mail/config/nginx/vhost/default.conf server { listen 80 default; charset utf-8; server_name mail.test.com; large_client_header_buffers 4 16k; client_max_body_size 300m; client_body_buffer_size 128k; proxy_connect_timeout 600; proxy_read_timeout 600; proxy_send_timeout 600; proxy_buffer_size 64k; proxy_buffers 4 32k; proxy_busy_buffers_size 64k; proxy_temp_file_write_size 64k; ………………………………………………………………………………………………
2、最后重启nginx服务
原文地址:http://blog.51cto.com/net881004/2145177
时间: 2024-11-09 11:11:27