We're trying to implement an application load balancer with different applications seperated by rules within a listener but we cannot seem to get it working properly. We're using the following set-up: Applications/Domains:
- test1.example.com
- test2.example.com
Both of these applications are installed on different servers, when configured the load balancer with one of them then it works just fine. But now we're trying to set it up in such a way that we can hit both url's with one load balancer. The rules we've tried are the following:
IF
Host is test1.example.com
THEN
Forward to
test1target: 1 (100%)
2
IF
Path is/login
THEN
Forward to
test1target: 1 (100%)
3
IF
Path isportal/*
THEN
Forward to
test2target: 1 (100%)
Group-level stickiness: Off
HTTPS 443: default action
IF
Requests otherwise not routed
THEN
Return fixed response 503 (more...)
Test1.example.com
has a login path and test1.example has a portal/*
path. But neither the path config or the host: config seem to be working, it's jumping straight to the default rule and shows the custom 503 error.
Any ideas?