If you are going to use a different domain, you will need to configure the application using the bnconfig tool we include in the stack. So once you move it to the new server, please run this command
sudo /installdir/apps/edx/bnconfig --machine_hostname newdomain.com
More info here: https://docs.bitnami.com/installer/apps/edx/administration/configure-domain/
Can you try to run the bnconfig tool and check if the domain is configured properly?
The files it edits are:
Please check if there are references to the old domain there