Hello,
actually i work on a redirect-rule in HAProxy, which doesn't work.
In my example, a call to http://intranet.complex.org should redirected to http://intranet.complex.org/department. Following is the configured setup. What i do wrong?
This is what i already configured (IP's and Names are fictional):
Real-Server
Name: Webserver
IP: 192.168.69.69
Port: 80
Condition:
Name: Intranet
Type: Host start with
Prefix: intranet
Rule:
Name: Intranet
Test type: IF
condition: Intranet
Log. operator: none
execute func: http-request redirect
HTTP Redirect: location http://intranet.complex.org/department
Backend Pool:
Name: Intranet
Servers: Webserver
Rules: Intranet
Public Service:
Name: HTTP_Internal
Listen-Address: 192.168.69.1:80
Backend-Pool: none
Rules: Intranet