Reputation: 11
I'm trying to configure a rule on my ALB's HTPP Port 80 listener.
The aim is to redirect to a different path "/fixtures.html" but keep it at HTTP
However when i deploy this i get loop errors in chrome,
Am I don't something wrong? Can you not redirect HTTP to HTTP?
Thanks!
Upvotes: 0
Views: 1332
Reputation: 200456
That rule will redirect the user to that path, and cause the user's browser to send a new request for that /fixtures.html
file. On that second request, the user's IP still matches the IP in the redirect rule, so it will issue another redirect. Thus the redirect loop you are running into.
Since you can't currently negate conditions in ALB rules, you can't add a condition for "path is not /fixtures.html", so this is going to be a bit difficult to do correctly through ALB listener rules. You may be better off adding this redirect condition inside your web server's configuration where you instead of in the load balancer's configuration.
Upvotes: 1