Nginx as an frontend [message #119909] |
Tue, 10 March 2015 21:33  |
Faust
Messages: 5 Registered: March 2015
|
|
|
|
Nginx as an frontend
conf:
server {
listen 80;
server_name srv3.org;
root /usr/share/nginx/srv3/www;
access_log /var/log/nginx/srv3.log;
error_log /var/log/nginx/srv3_error.log;
server_tokens off;
location / {
proxy_http_version 1.1;
proxy_pass_header Server;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header HOST $http_host;
proxy_pass http:/ /10.100.100.208;
proxy_redirect off;
}
}
------------------------------
Issue: After 60 s from open WebMail UI get in console chrome error net::ERR_INCOMPLETE_CHUNKED_ENCODING
continuously
In logs Nginx "upstream timed out (110: Connection timed out) while reading upstream" many time
After ~16 min get message in WebMail UI "Server Connection lost. Check Internet"
But UI worked, no lost connection and select "ok" to close massage window. All work. But after again ~16 min get message "Check Internet"
[Updated on: Sun, 15 March 2015 17:31] Report message to a moderator
|
|
|
|
Re: Ngnix as an frontend [message #120029 is a reply to message #119943] |
Mon, 16 March 2015 03:09   |
dinanj
Messages: 2 Registered: March 2015
|
|
|
|
server {
listen 80;
server_name srv3.org;
root /usr/share/nginx/srv3/www;
access_log /var/log/nginx/srv3.log;
error_log /var/log/nginx/srv3_error.log;
server_tokens off;
location / {
proxy_http_version 1.1;
proxy_pass_header Server;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header HOST $http_host;
proxy_pass http:/ /10.100.100.208;
proxy_redirect off;
chunked_transfer_encoding on;
}
}
|
|
|
|
Re: Ngnix as an frontend [message #120031 is a reply to message #120030] |
Mon, 16 March 2015 06:14   |
dinanj
Messages: 2 Registered: March 2015
|
|
|
|
im assuming this only happens on chrome? as when I google ERR_INCOMPLETE_CHUNKED_ENCODING I get nothing but chrome information. try looking at what others have done to fix this issue, could lead you somewhere.
I have interest in this as well as I am provisioning Kerio for use in all 3 companies that I work for and plan on eventually proxying it through nginx.
although I don't plan on proxying through the same server, I like to have a server designated for proxy only.
have you asked support? if not, I would lob a ticket at them, then post the response on here.
|
|
|
Re: Ngnix as an frontend [message #120045 is a reply to message #120031] |
Mon, 16 March 2015 14:49   |
Faust
Messages: 5 Registered: March 2015
|
|
|
|
ERR_INCOMPLETE_CHUNKED_ENCODING show only chrome console
But after 1000 sec inactivity, i got messadge "Check Internet" in FF and all over browsers, but connection is not interrupted, click OK, the message closes and the Web UI continues to work
No, not asked in a support
|
|
|
|
|
Re: Nginx as an frontend [message #127923 is a reply to message #127749] |
Sat, 13 February 2016 14:06   |
Ophion
Messages: 8 Registered: February 2016
|
|
|
|
We just built a setup with nginx in front the last weekend.
The really annoying popup went away after defining:
proxy_connect_timeout 6000;
proxy_send_timeout 6000;
proxy_read_timeout 6000;
send_timeout 6000;
Make sure you define this in the appropriate section, e.g. in the 443 listener if you're running SSL. And don't forget to increase client_max_body_size as well, or nginx will block attachments much sooner than your kerio would.
|
|
|
|