haproxy url acl

From: Avinash Gaonkar <agaonkar#gmail.com>
Date: Thu, 21 Jul 2011 12:05:41 +0530


Dear Willy,

I have configured haproxy with stunnel to load balance my web servers.

https request -->stunnel--->haproxy --> backend servers(apache+tomcat)

This works fine but when I want to redirect http traffic to https in haproxy using acl it doesn't work.

http request -->haproxy <use acl to redirect to https----> stunnel --> haproxy ----> backend servers(apache+tomcat)

My fontend config:

frontend example.com.com
bind 192.168.10.11:80
mode http
log global
option httplog
maxconn 10000
timeout client 300s
acl secure url http://example.com
redirect location https://example.com/MyServer if secure default_backend example.comBACK

is my acl ok?

Regards,
Avinash Gaonkar Received on 2011/07/21 08:35

This archive was generated by hypermail 2.2.0 : 2011/07/21 08:45 CEST