ELB Rule if Host Header is not equal to

0

I am looking to write a rule for ELB that redirects to a certain host, if the Host Header does not match that host. The use case is trying to access to the underlying site using the IP address and not the domain name.

I have it working if I manually do if HOST HEADER = {IP ADDRESS} but this isn't ideal as any time a new network interface is created or IP address updated I will need to update the rules.

Is there a way to do != in the value for host header?

asked 2 years ago2011 views
1 Answer
0

Hello

As far as I know, there is NO possibility to use not equal in ALB rules, But there are some possible ways you can use it to work permanently.

Possible solutions:

Thank You GK

profile picture
GK
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions