Re: haproxy and nginx

From: florian iragne <florian.iragne#viewsurf.com>
Date: Tue, 29 Jan 2008 11:05:45 +0100


Aleksandar Lazic a écrit :
> Hi,
>
> On Die 29.01.2008 09:52, florian iragne wrote:
>>
>> does anybody have any success using nginx and haproxy httpchk feature?
>
> Yes.
>
>> I try to use it but without success.
>>
>> with default httpchk, nginx answer : 192.168.2.1 - -
>> [29/Jan/2008:09:11:32 +0100] "OPTIONS / HTTP/1.0" 405 173 "-" "-" "-"
>> with httpchk OPTIONS * HTTP/1.1\r\nHost: www, nginx answer :
>> 192.168.2.1 - - [29/Jan/2008:09:12:45 +0100] "-" 400 173 "-" "-" "-"
>
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html =>
>
> ---
> 10.4.6 405 Method Not Allowed
>
> The method specified in the Request-Line is not allowed for the resource
> identified by the Request-URI. The response MUST include an Allow header
> containing a list of valid methods for the requested resource. ---
>
>> so, if you have any clue on how to make this working, i will be grateful
>
> Try HEAD / instead OPTIONS.
>
> Btw.: What is in the nginx errorlog?
>
> Hth
>
> Aleks
>

I've posted an answer earlier, but only to myself... ;-)

here it is :

"Well, using HEAD / HTTP/1.1\r\nHost: www, it works and awstat seem not to be disturbed.

So that's great "

thanks for your answer

Florian Received on 2008/01/29 11:05

This archive was generated by hypermail 2.2.0 : 2008/01/29 11:15 CET