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.
Please review the description of httpd.conf or .htaccess first.
If there is no problem, check if the website or web application running on Apache is executing the redirect process.
AWS EC2: restarted instance, got assigned a new IP, now IP is redirecting to old IP via response headers Location.asked 3 months ago
Unable to access EC2 Instance over the Public IP Addressasked 3 months ago
How to use lightsail instance snapshot and point it to different IPasked 7 months ago
Static IP address for EC2 Instanceasked 3 years ago
EC2 Instance IP keeps changing despite elastic IPasked 8 months ago
Why it isn’t re-assigned a public IP address and public IP DNS for a Instance in a public subnet after stopped and started in case of attached 2 eni.Accepted Answerasked 25 days ago
EC2 instance doesn't get a new public IP after Elastic IP is disassociatedasked 5 months ago
Can't ssh to EC2 after assigning an additional public ip(elastic ip)asked 9 months ago
EC2 Instance Connect SSH source IPasked 2 months ago
Restoring an EC2 Instance - the Public IP is missingAccepted Answerasked 3 months ago