Hi,

As far as I can read, your configuration can't work.
>From my understanding your traffic seems to be encripted, so HAProxy
can't manipulate it.
You must use stunnel or stud or pound in front of HAProxy in order to
decrypt traffic.
Then, your rewrite rule might work.

cheers


On Wed, Jan 4, 2012 at 11:28 AM, Ravi Ranjan <[email protected]> wrote:
> Hi All,
>
>
>
> Please can some one help me on setting rewrite rule for haproxy ssl.
>
>
>
> I tried a lot but it fails.
>
>
>
> Here is the config:
>
>
>
> listen example_ssl 0.0.0.0:1443
>
>  mode http
>
>         balance roundrobin
>
>         option ssl-hello-chk
>
>         reqadd X-Is-Secure-Request:True
>
>         option httpclose
>
>         rspirep ^Location:\ https://www.example.com/(.*)   Location:\
> https://example.com/\1
>
>         server apigee1 192.168.2.50:80 minconn 32000 maxconn 3200 check port
> 81 inter 30000
>
>         server apigee2 192.168.2.51:80 minconn 32000 maxconn 3200 check port
> 81 inter 30000
>
>
>
> Below is what I wanted:
>
>
>
> Anything for example https://www.example.com/testing should be redirected or
> rewritten to https://example.com/testing
>
>
>
> Please can someone help on this.
>
>
>
> With Warm Regards
>
> Ravi Ranjan

Reply via email to