Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Connect » Nginx as an frontend
  •  
Faust

Messages: 5
Karma: 0
Send a private message to this user
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]

  •  
Faust

Messages: 5
Karma: 0
Send a private message to this user
  •  
dinanj

Messages: 2
Karma: 0
Send a private message to this user

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;
}
}
  •  
Faust

Messages: 5
Karma: 0
Send a private message to this user
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]

  •  
dinanj

Messages: 2
Karma: 0
Send a private message to this user



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.
  •  
Faust

Messages: 5
Karma: 0
Send a private message to this user
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
  •  
Faust

Messages: 5
Karma: 0
Send a private message to this user
Really need to address this problem
  •  
Vladimír Mlčoch (Kerio)

Messages: 35
Karma: 1
Send a private message to this user
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]

  •  
Ophion

Messages: 8
Karma: 0
Send a private message to this user
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.
Previous Topic: Kerio Mail Export und spezielle Berechtigungen
Next Topic: Public folders for files / simple file sharing DECLINED!!!
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Wed Jan 18 08:59:21 CET 2017

Total time taken to generate the page: 0.01159 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.