0
I have a domain name (Eg: www.myurl.com) and my website is running in an Elastic Beanstalk instance on AWS EC2.
I have created a hosted zone and made all the entries for pointing my domain to my EC2 instance.
Everything works fine, but the only problem is , when I hit my domain url (www.myurl.com) , the website loads from EC2 but the url also changes to the EC2 url, something like (http://someec2.url.aws.com)
How can I keep my url (www.myurl.com) in the browser, while the website still loads from ec2 and restrict to show the ec2 url.
Quick response is appreciated.
Thanks in advance.
I'm reasonably sure that if you search this site, you'll find your answer. If you inspect your HTTP response headers and your web server access logs, you'll also find that your server is actually triggering this behavior. – Michael - sqlbot – 2017-06-24T00:40:46.473