So basically I have 2 different applications running on port 5000 and 30000 on a single ubuntu server respectively.Both these application has to be mapped using haproxy.I am using acl path_beg to use a made up pathname(alias) to access these applications instead of using their respective port numbers.
what i have tried so far
frontend http-in
mode http
bind *:80
bind *:443 ssl crt /etc/ssl/private/mydomain.pem
http-request redirect scheme https code 301 if !{ ssl_fc }
acl path-employeeList path_beg -i /ProcessDesigner
use_backend backend1 if path-employeeList
acl path-employeeListfinal path_beg -i /ProcessCore
use_backend backend2 if path-employeeListfinal
backend backend1
mode http
option httplog
option forwardfor
reqrep ^([^\ :]+)\ /ProcessDesigner/?(.*)$ \1\ /\2
server backend1 206.189.22.155:30000
backend backend2
mode http
option httplog
option forwardfor
reqrep ^([^\ :]+)\ /ProcessCore/?(.*)$ \1\ /\2
server backend2 206.189.22.155:5000
Using this configuration i am only able to access the first application at https://206.189.22.155/ProcessDesigner, but when i try to access the second application at https://206.189.22.155/ProcessCore i get a white blank page with no output.Inspecting the page and checking the console shows me "Failed to load resource:the server responded with a status of 503(service unavailable)".