I’m new in HAProxy can you tell my how I can properly configuring rewrite in HAproxy?
acl simple hdr_end(host) -i simpledomain.com
use_backend app if simple
server srv1 192.168.10.3:8080
reqrep ^([^\ :])\ /(.) \1\ /simpleapp/\2 |<-- this line isn’t work
I have this config and I want to do this forwarding:
The forwarding work only that, without rewrite /simpleapp:
simpledomain.com —> 192.168.10.3:8080
What should be changed in this configuration to make it work?