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?

preguntada hace 2 años2045 visualizaciones
1 Respuesta
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
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas