AWS EC2: restarted instance, got assigned a new IP, now IP is redirecting to old IP via response headers Location.

0

Hi, I've restarted my EC2 instance, I got assigned a new IP and now everytime I access that IP I am being redirecting to the old IP via response headers Location. browser(s) have clean no cookie/no cache.

I can enter my machine via SSH, checking my Apache logs and not seeing any new lines in both access and error. My security groups are working fine and access is open to me (as previously to restart).

Not sure how this happened and would be happy to know how to resolve this.

erezt
feita há 2 anos538 visualizações
1 Resposta
0

Hi, @erezt

You haven't placed ALB or CloudFront in front of your EC2 instance, right?

If so, you're probably redirected by the Apache settings on your EC2 instance or the code in your web application.

  1. Please review the description of httpd.conf or .htaccess first.

  2. If there is no problem, check if the website or web application running on Apache is executing the redirect process.

profile picture
ESPECIALISTA
iwasa
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