URL CHANGE old url to new url

Hi for long time I have on URL url1.ninja working correctly this is only one url. Now I need change this url for another url2.ninj. The invoice ninja software is always in the same place is an external self-hosting.

dns url1.ninja.com – and works
dns url2.ninja.com – and NOT works

I changed from internal interface to the new url and not work

any can I help me?

I’m not sure I understand, but… maybe check that the APP_URL is correct in the .env file

Sorry for my explication.
I have self host in ip
I connect to this address from my host dns provider url1
now I need change this url for another but dont work.
I changed this from the env file and dont work

I receive this message

The website is not properly configured on this server

If you are the owner of this website, please contact your hosting provider

Are there any errors in the web server error logs?