Reverse Proxy with Oracle APEX

Need help setting HAProxy as a Reverse Proxy for my Oracle APEX applications.

Currently, my apps are accessed through their respective URLs like the ones here:
and so on…

Also, I have created an internal DNS that points to the machine that hosts HAProxy ( and I would like that when the user goes to this url HAProxy will redirect him/her to the

Here is my haproxy.cfg file:
log local2 debug

chroot      /var/lib/haproxy
pidfile     /var/run/
maxconn     4000
user        haproxy
group       haproxy

# turn on stats unix socket
stats socket /var/lib/haproxy/stats

mode http
log global
option httplog
option dontlognull
option http-server-close
option forwardfor except
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

frontend http_in
bind *:80
mode http
option httplog

acl host_launchpad hdr(host) -i

use_backend launchpad if host_launchpad

backend launchpad
balance roundrobin
option httplog
server app1 check

So far, when going to it always takes me to the site (which is the admin page). I believe HAProxy is stripping out the f?p=100 part of the url which leaves and by default this always takes you to the admin page.

any idea on how to force and keep the f?p=100 part of the url?



I was able to figure it out after upgrading haproxy to its latest version and using

http-request set header /mypath