Hi Mirco,

On Sat, Aug 15, 2009 at 04:40:04PM +0200, Mirco Heibült wrote:
> Hi all,
> 
> I have integrated the Gallery 2 Remote Protocol but one app is making  
> problems and the Server-ID ist always lost.
> 
> This is the request, the app makes, and there is no SERVERID injected  
> by haproxy:
> 
> Array
> (
>     [HTTP_USER_AGENT] => West Wind HTTP .NET in Pix2Gallery2
>     [CONTENT_TYPE] => multipart/form-data;  
> boundary=-----------------------------7cf2a327f01ae
>     [HTTP_HOST] => www.nitestar.de
>     [HTTP_COOKIE] => SID=17c99d0fa0c41b8cdb956bb5c3238adf
>     [CONTENT_LENGTH] => 741
>     [HTTP_EXPECT] => 100-continue
>     [HTTP_X_FORWARDED_FOR] => 84.132.67.178
>     [HTTP_CONNECTION] => close
>     [PATH] => /usr/local/bin:/usr/bin:/bin
>     [SERVER_SIGNATURE] =>
>     [SERVER_SOFTWARE] => Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3  
> with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g
>     [SERVER_NAME] => www.nitestar.de
>     [SERVER_ADDR] => 91.143.80.164
>     [SERVER_PORT] => 80
>     [REMOTE_ADDR] => 91.143.80.181
>     [DOCUMENT_ROOT] => XXX
>     [SERVER_ADMIN] => XXX
>     [SCRIPT_FILENAME] => XXX
>     [REMOTE_PORT] => 57234
>     [GATEWAY_INTERFACE] => CGI/1.1
>     [SERVER_PROTOCOL] => HTTP/1.1
>     [REQUEST_METHOD] => POST
>     [QUERY_STRING] =>
>     [REQUEST_URI] => //main.php
>     [SCRIPT_NAME] => /main.php
>     [PHP_SELF] => /main.php
>     [REQUEST_TIME] => 1250346630
>     [argv] => Array
>         (
>         )
> 
>     [argc] => 0
> )
> 
> These are parts of my haproxy-Config:
> 
> stats enable
> balance roundrobin
> option httpclose
> cookie SERVERID insert indirect nocache
> option forwardfor
> option httpchk HEAD /check.txt HTTP/1.0
> 
> Thanks for help if this is a configuring problem of haproxy!

Well, I'm not sure I understand what you are trying to achieve,
but cookie insertion works on the response. The idea is to set
a cookie to the client indicating which server processed the
request, so that when it comes back later, we can direct it to
the same server. The cookie is then removed from the request
before being sent to the server, reason why you don't see it
on the server side.

Regards,
Willy


Reply via email to