Hi,
Yes i have setuped logging :
listen serveurs_ssp-dispatcher
bind x.x.x.x:80
log x.x.x.x local0
no option log-separate-errors
option httplog
option logasap
no option log-separate-errors
capture request header X-Forwarded-For len 50
capture request header Host len 50
capture request header Content-Length len 10
capture request header Referer len 100
capture response header Server len 20
capture response header Content-Length len 10
capture response header Cache-Control len 8
capture response header Via len 20
capture response header Location len 100
cookie DISPATCHER insert nocache
capture cookie phpAds_capAd_c3 len 50
option httpchk get /alive HTTP/1.0\r\nHost:\ dispatcher.adxcore.com
maxconn 10
timeout client 20s
server dispatcher1.prod.ssp.adxcore.com 149.202.69.147:80 cookie DIS1
check inter 10s weight 30
I captured this log :
Jul 19 15:59:44 testvm.adthink.com haproxy[5904]: 82.64.34.197
1532015983 dispatcher1.prod.ssp.adxcore.com 200 +615
{|dispatcher.adxcore.com||} {Apache|5870|must-rev||} "GET
/a/hb/prebid/v1/?zoneid=181948=1=15=1_flash=0=0czliw0ln73p=0=www.chefsimon.com=0.9610747275344138_start=1531471091736_capzone3=_capzoneformat3=_blockzone3==tututoto20bffceda9209c3ec636e8b37898061004aa97188=0=node_consent=&
HTTP/1.1"
But with my browser or curl i have "Empty reply from server"
Best regards,
Serge.
Le 19/07/2018 à 23:55, Aleksandar Lazic a écrit :
On 18/07/2018 15:56, Serge Reynier wrote:
Hi,
We are having some issues recently when calling a specific url, we
are getting the following error on the client side :
* "Empty reply from server"
I don't understand this statement:
The problem is that Haproxy is not logging any of these errors, and
more of that it shows a html 200 code.
Do you have setuped logging in haproxy?
Please can you share the config, thanks.
Normally you should see 0 length in the haproxy http log.
After some research, it seems that this error pops out because of bad
headers returned by our code.
So we would like to know if there's any way to log the "Empty reply
from server" error on the haproxy side ?
_/We are using Haproxy 1.8.12./_
Best regards,
Serge.
Best regards
Aleks