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
已提问 2 年前538 查看次数
1 回答
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
专家
iwasa
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则