# URLs LoadBalancing

**URL:** <https://discourse.haproxy.org/t/urls-loadbalancing/5519>\
**Category:** Help!\
**Created:** [July 23, 2020, 3:19pm UTC](https://discourse.haproxy.org/t/urls-loadbalancing/5519 "2020-07-23T15:19:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OsamaBadr](https://avatars.discourse-cdn.com/v4/letter/o/6a8cbe/32.png) [@OsamaBadr](https://discourse.haproxy.org/u/OsamaBadr)\
**Post date:** [July 23, 2020, 3:19pm UTC](https://discourse.haproxy.org/t/urls-loadbalancing/5519/1 "2020-07-23T15:19:35Z")

</div>

Hello

I have this setup

1. HAProxy Server
2. Two Nginx web servers

I need to redirect user according to the URLs  
But the URLs is variable not static URLs (domainname/variablename)  
I used (balance url\_param id) but it isn’t work

This is my haproxy configuration

> frontend haproxynode  
> bind \*:80  
> bind \*:443 ssl crt /etc/haproxy/certs/domainname.pem  
> http-request redirect scheme https unless { ssl\_fc }  
> mode http  
> default\_backend backendnodes
> 
> backend backendnodes  
> mode http  
> balance url\_param id  
> option httpchk  
> hash-type consistent  
> http-request set-header X-Forwarded-Port %[dst\_port]  
> http-request add-header X-Forwarded-Proto https if { ssl\_fc }  
> option httpchk HEAD / HTTP/1.1\r\nHost:localhost  
> server node1 x.x.x.x:4444 check ssl verify none  
> server node2 x.x.x.x:4444 check ssl verify none

Kindly i need your support

Thanks
