Configuration is below. Short story is my rspirep Location header
replacement is successful only ~20% of the time - I'm just testing w/
curl over and over. I saw mixed information about http-server-close and
http-pretend-keepalive, but it didn't seem to make much difference. I am
running 1.5-dev17 - I'm going to try to build and test the latest
snapshot shortly.
Thanks-
David
global
user haproxy
group haproxy
log 127.0.0.1 local2
daemon
stats socket /var/run/haproxy.stat mode 600 level admin
maxconn 40000
ulimit-n 81000
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
crt-base /etc/haproxy/ssl
defaults
log global
mode http
option dontlognull
# option redispatch
retries 3
timeout http-request 10s
timeout queue 1m
timeout connect 10s
timeout client 1m
timeout server 1m
timeout http-keep-alive 10s
timeout check 10s
maxconn 3000
listen stats :::7000
mode http
stats enable
stats hide-version
stats realm haproxy
stats uri /
stats auth haproxy:test
backend app-operations-console
server rhesprodapp01 10.250.52.216:7072 check ssl
# server rhesprodapp02 10.250.52.217:7072 check ssl
backend app-console-selfservice
http-send-name-header Host
#cookie JSESSIONID prefix
balance source
server rhesprodapp01.domain.com:7004
rhesprodapp01.domain.com:7004 check ssl
server rhesprodapp02.domain.com:7004
rhesprodapp02.domain.com:7004 check ssl
frontend app
timeout client 86400000
mode http
option httpclose
option forwardfor
# option http-server-close
# option http-pretend-keepalive
bind :443 ssl crt domain.pem ciphers
ECDHE-RSA-AES256-SHA:RC4-SHA:RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM
default_backend app-console-selfservice
acl url_app_ops path_beg /operations-console
use_backend app-operations-console if url_app_ops
rspirep ^Location: Location:\ foobar
# rspirep ^Location:\s*https://([^/]+)/(.*)$ Location:\
https://apptest.domain.com/\2