how to confiugre haproxy such that all traffic coming for *.app1.example.com redirects to infra1 and infra2, while *.app2.example.com redirects to infra3 and infra4.