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
asked 2 years ago533 views
1 Answer
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
EXPERT
iwasa
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions