# Reverse Proxy with Oracle APEX

**URL:** <https://discourse.haproxy.org/t/reverse-proxy-with-oracle-apex/6281>\
**Category:** Help!\
**Created:** [February 23, 2021, 7:41pm UTC](https://discourse.haproxy.org/t/reverse-proxy-with-oracle-apex/6281 "2021-02-23T19:41:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jvelezmorales](https://avatars.discourse-cdn.com/v4/letter/j/cdc98d/32.png) [@jvelezmorales](https://discourse.haproxy.org/u/jvelezmorales)\
**Post date:** [February 23, 2021, 7:41pm UTC](https://discourse.haproxy.org/t/reverse-proxy-with-oracle-apex/6281/1 "2021-02-23T19:41:18Z")

</div>

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:  
[apexapp1.mydomain.com/ords/f?p=100](http://apexapp1.mydomain.com/ords/f?p=100)  
[apexpp2.mydomain.com/ords/f?p=200](http://apexpp2.mydomain.com/ords/f?p=200)  
and so on…

Also, I have created an internal DNS that points to the machine that hosts HAProxy ([myInternalDNSApp1.mydomain.com](http://myInternalDNSApp1.mydomain.com)) and I would like that when the user goes to this url HAProxy will redirect him/her to the [apexapp1.mydomain.com/ords/f?p=100](http://apexapp1.mydomain.com/ords/f?p=100).

Here is my haproxy.cfg file:  
global  
log 127.0.0.1 local2 debug

```
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn 4000
user haproxy
group haproxy
daemon

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

```

defaults  
mode http  
log global  
option httplog  
option dontlognull  
option http-server-close  
option forwardfor except 127.0.0.0/8  
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 myInternalDNSApp1.mydomain.com

use_backend launchpad if host_launchpad

```

backend launchpad  
balance roundrobin  
option httplog  
server app1 [apexapp1.mydomain.com/ords/f?p=100](http://apexapp1.mydomain.com/ords/f?p=100) check

So far, when going to [myInternalDNSApp1.mydomain.com](http://myInternalDNSApp1.mydomain.com) it always takes me to the [apexapp1.mydomain.com/ords/f?p=4550](http://apexapp1.mydomain.com/ords/f?p=4550) site (which is the admin page). I believe HAProxy is stripping out the f?p=100 part of the url which leaves [myInternalDNSApp1.mydomain.com/ords](http://myInternalDNSApp1.mydomain.com/ords) 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?

thanks.

Basically

---

<div class="post-metadata">

**Author:** ![jvelezmorales](https://avatars.discourse-cdn.com/v4/letter/j/cdc98d/32.png) [@jvelezmorales](https://discourse.haproxy.org/u/jvelezmorales)\
**Post date:** [February 24, 2021, 5:10pm UTC](https://discourse.haproxy.org/t/reverse-proxy-with-oracle-apex/6281/2 "2021-02-24T17:10:10Z")

</div>

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

http-request set header /mypath

---

<div class="post-metadata">

**Author:** ![nek1987](https://avatars.discourse-cdn.com/v4/letter/n/13edae/32.png) [@nek1987](https://discourse.haproxy.org/u/nek1987)\
**Post date:** [November 14, 2021, 7:36pm UTC](https://discourse.haproxy.org/t/reverse-proxy-with-oracle-apex/6281/3 "2021-11-14T19:36:39Z")

</div>

Hi can you share configuration to check  
thx advice
