GFI Software Aurea SMB Solutions


Home » GFI User Forums » Kerio Connect » Nginx as an frontend
Nginx as an frontend [message #119909] Tue, 10 March 2015 21:33 Go to next message
Faust is currently offline  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 #119943 is a reply to message #119909] Thu, 12 March 2015 05:29 Go to previous messageGo to next message
Faust is currently offline  Faust
Messages: 5
Registered: March 2015
How fix it?
Re: Ngnix as an frontend [message #120029 is a reply to message #119943] Mon, 16 March 2015 03:09 Go to previous messageGo to next message
dinanj is currently offline  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 #120030 is a reply to message #120029] Mon, 16 March 2015 05:51 Go to previous messageGo to next message
Faust is currently offline  Faust
Messages: 5
Registered: March 2015
thanks for the answer, but it does not help.
chunked_transfer_encoding on; the default value
I checked, the response: Transfer-Encoding: chunked
Problem with url webmail/api/jsonrpc

[Updated on: Mon, 16 March 2015 05:53]

Report message to a moderator

Re: Ngnix as an frontend [message #120031 is a reply to message #120030] Mon, 16 March 2015 06:14 Go to previous messageGo to next message
dinanj is currently offline  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 Go to previous messageGo to next message
Faust is currently offline  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
icon8.gif  Re: Nginx as an frontend [message #120213 is a reply to message #119909] Sat, 21 March 2015 13:02 Go to previous messageGo to next message
Faust is currently offline  Faust
Messages: 5
Registered: March 2015
Really need to address this problem
Re: Nginx as an frontend [message #127749 is a reply to message #120213] Mon, 08 February 2016 08:21 Go to previous messageGo to next message
Vladimír Mlčoch (Kerio) is currently offline  Vladimír Mlčoch (Kerio)
Messages: 26
Registered: July 2012
Location: Pilsen
There is a variable "LongPollTimeout" in mailserver.cfg.
By adjusting its value (in seconds) you can increase timeout for web connections, for example setting it to 6000 means timeout 100 minutes.
Mailserver.cfg has to be edited when mailserver is stopped.

[Updated on: Mon, 08 February 2016 08:21]

Report message to a moderator

Re: Nginx as an frontend [message #127923 is a reply to message #127749] Sat, 13 February 2016 14:06 Go to previous messageGo to next message
Ophion is currently offline  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.
Re: Nginx as an frontend [message #137667 is a reply to message #119909] Mon, 13 November 2017 17:31 Go to previous message
Valentijn (vBoxx) is currently offline  Valentijn (vBoxx)
Messages: 5
Registered: November 2017
Did anyone managed to send the correct source IP to the server?

I only see the localhost value in the admin dashboard -> active connections, from Kerio Connect, and not the actual user's IP.

Previous Topic: Kerio updater uninstall
Next Topic: Connection problem
Goto Forum:
  


Current Time: Thu May 28 03:00:18 CEST 2020

Total time taken to generate the page: 0.03505 seconds