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?

feita há 2 anos2045 visualizações
1 Resposta
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 há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas