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?

gefragt vor 2 Jahren2045 Aufrufe
1 Antwort
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
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen