Remote IP’s with HAProxy

2011-10-24 Thread Iceskysl
hey all I’m testing a new web server setup which is having a couple of issues. Essentially, we have a web server, where the code uses the remote IP for some interesting things, and also some apache directories secured down to some certain IP’s (our office etc). However, we’ve just chucked this

Re: Remote IP’s with HAProxy

2011-10-24 Thread Graeme Donaldson
On 24 October 2011 11:42, Iceskysl icesk...@gmail.com wrote: I’m testing a new web server setup which is having a couple of issues. Essentially, we have a web server, where the code uses the remote IP for some interesting things, and also some apache directories secured down to some certain

Re: Using HAProxy for ldap

2011-10-24 Thread Brane F. Gračnar
On Monday 24 of October 2011 14:29:07 Danie Weideman wrote: Is it possible to loadbalance between two active master ldap servers? If so I would like for one to be always persistent. Something like: frontend FE_ldap bind1.2.3.4:389 modetcp defailt_server

php $_server variable when using haproxy stunnel

2011-10-24 Thread Amol
Hi, i was trying to check on my php variables using the following code on both my servers ?php if($_SERVER['HTTPS'])     echo 'https'; else     echo 'Not Https';    echo BR; $port = $_SERVER['SERVER_PORT']; echo $port; echo BR; $protocol = $_SERVER[SERVER_PROTOCOL]; echo $protocol; ? my

Re: php $_server variable when using haproxy stunnel

2011-10-24 Thread Brane F. Gračnar
On Monday 24 of October 2011 20:48:33 Amol wrote: Hi, i was trying to check on my php variables using the following code on both my servers ?php if($_SERVER['HTTPS']) echo 'https'; else echo 'Not Https'; echo BR; $port = $_SERVER['SERVER_PORT']; echo $port; echo BR;

Re: php $_server variable when using haproxy stunnel

2011-10-24 Thread Amol
Thanks Brane for the reply but setting these options in my haproxy config reqidel ^Server-Protocol: reqadd Server-Protocol:\ https if src 127.0.0.1 gives me these errors $ sudo /etc/init.d/haproxy restart  * Restarting haproxy haproxy                                                            

Re: php $_server variable when using haproxy stunnel

2011-10-24 Thread Brane F. Gračnar
On Monday 24 of October 2011 23:13:54 Amol wrote: Thanks Brane for the reply but setting these options in my haproxy config reqidel ^Server-Protocol: reqadd Server-Protocol:\ https if src 127.0.0.1 gives me these errors $ sudo /etc/init.d/haproxy restart * Restarting haproxy haproxy

Re: php $_server variable when using haproxy stunnel

2011-10-24 Thread Amol
Hi Brane, this time it worked (the server restarted fine after i added those lines) can you please elaborate how adding these lines has affected my configuration ? since i still see that on the clients that the php variable $_SERVER['HTTPS'] is Not Https Thanks