Cloned OpenEMR Instance Redirecting to Original Instance


(Acs5071) #1

Situation
I have an AWS ec2 instance running OpenEMR Cloud Express 5.0.1 that has an Elastic IP Address and redirects to a domain name. I cloned this instance using Action -> Create Image, then launched a new instance using the AMI created from the original instance. This clone instance is not attached to the Elastic IP Address, it has its own IP. When I visit the web app of the clone instance by copying and pasting the IP into the address bar I get redirected to the original instance. Any new data added in the web app updates the original instance and any data added to the cloned instance via ssh is only added to the clone instance. I think the redirect is being caused by something in /var/www/localhost/htdocs/openemr directory, but I can’t seem to pinpoint where exactly. If someone could please point me to correct file and directory that the redirect could be located in that would be great.

Thank you so much for your help!

OpenEMR Version
I’m using OpenEMR version 5.0.1

Browser:
I’m using: Mozilla Firefox, but it also happens in Chrome

Operating System
I’m using: Ubuntu 16.04, but it also happens in Windows 10

Logs
Did you check the logs? Was there anything pertinent in them? Paste them here (surround with three backticks (```) for readability


(Asher Densmore-Lynn) #2

Are you using SSL with a redirect from http to https? If so, could this be the problem?

http://93.7.8.9 --> redirects to https://totallysweet.md.com
https://totallysweet.md.com --> you’re back on the original instance! D:

Solution: Connect to https://93.7.8.9 and ignore the browser SSL warning.


(Acs5071) #3

There is a redirect to https. Typing https:// in front of the clone instance url took me to the clone instance instead of redirecting me.

Thank you!