Home » Kerio User Forums » Kerio Connect » Active Sync via Apache Proxy (proxy: error reading status line from remote server localhost)

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

Hello and Happy NEW YEAR! Let me begin by giving a brief description of our setup.

KMS 6.7 is running on the same physical server as an Apache server. Apache listens to both port 80 and 443 and can serve HTTP/HTTPS requests. In order to run active sync, I had to create a proxy following dr_gaston's advice here:

http://forums.kerio.com/index.php?t=msg&th=5349&prev loaded=1&S=2281f41c487074b647b52d5560e5766e&start=0

This seems to work fine on the client side, however my apache error logs get flooded with these messages:

[Wed Jan 06 16:24:22 2010] [error] (OS 10060)A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. : proxy: error reading status line from remote server localhost
[Wed Jan 06 16:24:22 2010] [error] proxy: Error reading from remote server returned by /Microsoft-Server-ActiveSync

Apache proxy config is as follows:
<VirtualHost *:443>
ServerName mail.domain.com
ErrorLog logs/proxyerror.log
CustomLog logs/proxyaccess.log combined
SSLEngine On
SSLProxyEngine On
SSLCertificateFile "C:/Program Files/Kerio/MailServer/sslcert/server2.crt"
SSLCertificateKeyFile "C:/Program Files/Kerio/MailServer/sslcert/server2.key"
SSLProxyVerify none
ProxyPass / https://localhost:444/
ProxyPassReverse / https://localhost:444/
ProxyPreserveHost On
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
<Location />
ProxyPass https://localhost:444
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1

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

Messages: 3
Karma: 0
Send a private message to this user
Setting the "TimeOut 1800" in the httpd.conf file will make this error disappear.
Or place "ProxyTimeout 1800" in the virtual host config part.

See the apache documentatione below.

Also make sure there is not something like

<ProxyMatch \.(?i:cmd|exe|bat|com|vb?|ida|printer|htr|iso)$>
  Order allow,deny
  deny from all

is so, then omit the "exe" part or else the automatic update of the KOC in outlook will fail, as this blocks the download of exe files from the mail server

TimeOut Directive
Description: Amount of time the server will wait for certain events before failing a request
Syntax: TimeOut seconds
Default: TimeOut 300
Context: server config, virtual host
Status: Core
Module: core

The TimeOut directive defines the length of time Apache will wait for I/O in various circumstances:

1.When reading data from the client, the length of time to wait for a TCP packet to arrive if the read buffer is empty.
2.When writing data to the client, the length of time to wait for an acknowledgement of a packet if the send buffer is full.
3.In mod_cgi, the length of time to wait for output from a CGI script.
4.In mod_ext_filter, the length of time to wait for output from a filtering process.
5.In mod_proxy, the default timeout value if ProxyTimeout is not configured.

[Updated on: Mon, 10 February 2014 15:31]

Previous Topic: Kerio outlook connector & outlook 2013
Next Topic: Kerio Connect migration
Goto Forum:

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: Thu Nov 15 23:42:13 CET 2018

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