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?

demandé il y a 2 ans2045 vues
1 réponse
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
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions