Era
  • Member for 12 years, 3 months
  • Last seen this week
Rewrite URL to subdomain in HAProxy
0 votes

I solved it by combining reqrep and redirect like so use_backend website-blog if { path_reg \/?(.*)\/blog } backend website-blog reqrep ^([^\ :]*)\ \/?(.*)\/blog\/?(.*) \1\ /\2/\3 ...

View answer