Good evening,
I have been using AA Panel for quite some time without any issues. Initially, it was set up with LiteSpeed and everything worked perfectly. However, since I decided to switch to Nginx, I’ve noticed a problem when creating new websites.
When I create a new client site, for example with the URL client2.com, it automatically redirects to the first site I ever created, client1.com. The new site doesn’t work properly unless I manually add the following lines in the WordPress config:
define('WP_HOME','https://client2.com');
define('WP_SITEURL','https://client2.com');
define('RELOCATE', true);
and enable SSL (Cloudflare).
Please let me know what I need to do, because this is becoming very frustrating. Many new clients complain that they see an unrelated website when migrating to my server. This should not be happening. I have the impression that Nginx cannot find the correct site and falls back to the default one.