0
I have an EC2 instance running OpenEMR Cloud Express 5.0.1 attached to an Elastic IP address and with a domain name associated with it. I recently cloned the instance using Action -> Create Image, then launched an instance using that image. When I copy the IP address of the cloned instance and paste it into the address bar, it redirects me to the domain name of the original instance and any changes made affect only the original instance. When I ssh into the cloned instance all new data added through the web app is not there.
I was wondering what was causing the redirect and how to fix it? I need the clone instance to be completely separate and working from the original instance so that I can run some tests on it and practice an update.
Thank you for your help.
I believe oint 2 is suggesting that something configured inside the instance is aware of that old hostname, which is likely to be spot-on. In that light, characterizing this as "related to DNS" is likely not all that accurate, even though it could potentially be hacked into submission with a DNS change. The question probably boils down to "how do you tell OpenEMR Cloud Express 5.0.1 what its Internet-facing hostname is?" – Michael - sqlbot – 2019-09-26T01:13:07.977
might be i'm misunderstanding, but it seems to be another way of writing what i wrote. Either the old instance is using its own name and getting back the wrong ip, or the client is directed to use the name and getting back the wrong ip ? Either way, the fix is very similar. All guesswork though as there's not enough information to say either way. – Sirex – 2019-09-26T01:29:30.123
Agreed -- my intention was to suggest that your point 2 needed additional emphasis since the instance itself is almost certainly doing the redirecting to the external hostname of the image's former identity. My interpretation is that DNS is probably correct, but you could be right. +1 – Michael - sqlbot – 2019-09-26T01:49:38.153