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 __

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

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 20:48:33 Amol wrote: > Hi, i was trying to check on my php variables using the following code on > both my servers > > if($_SERVER['HTTPS']) > echo 'https'; > else > echo 'Not Https'; >echo ""; > $port = $_SERVER['SERVER_PORT']; > echo $port; > echo ""; >

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 "; $port = $_SERVER['SERVER_PORT']; echo $port; echo ""; $protocol = $_SERVER["SERVER_PROTOCOL"]; echo $protocol; ?> my output would be: Not Https  80 HTTP/1.1 my stunnel config is : --- [https-load]

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 BE_ld

Using HAProxy for ldap

2011-10-24 Thread Danie Weideman
Hi Is it possible to loadbalance between two active master ldap servers? If so I would like for one to be always persistent. Thanx in advance Kind regards Danie Weideman

Re: Remote IP’s with HAProxy

2011-10-24 Thread Graeme Donaldson
On 24 October 2011 11:42, Iceskysl 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 IP’s (our office

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 be

Re: Insert header for backend

2011-10-24 Thread Alex Davies
Found my mistake - i was using underscores instead of dashes to mark headers! This works: frontend main *:80 # local stunnel - add profile acl is_local_https src LOCALHOST reqadd HTTP-X-SECURE-RPROXY:\ TRUEif is_local_https On Mon, Oct 24, 2011 at 9:08 AM,

Insert header for backend

2011-10-24 Thread Alex Davies
Hi, I've recently moved from Apache to stunnel to provide SSL for haproxy. I have a need for the application behind haproxy to "know" if the connection has come in via HTTP or HTTPS. Previously, we have been injecting a custom header (X-SECURE-RPROXY or similar) in Apache if the connection is sec