Redirect - haporxy
Does anyone know how to do a redirect configuration haproxy to specific sub page, for example. example.com/contact
I tried different redirect, but it does not work, eg .: Code:
redirect location https://example.coml code 301 if { hdr_beg(host) -i contact } !{ ssl_fc } Code:
acl is_example_contact_https hdr_beg(host) -i example.com |
To be brutally honest, you should be doing these at the backend servers rather that at the haproxy server level. Keep haproxy for balancing and directing traffic.
Edit: This comes from recent experience trying to troubleshoot an issue that should have been in the vhosts file (or .htaccess) and then eventually finding out that it was being done by haproxy. :( :( |
All times are GMT -5. The time now is 06:04 PM. |