both have the same DNS records, pointing to the same VPS, their DNS records are both on Cloudflare, and they’re configured the same way on the VPS . they’ve Lets encrypt SSL, and I’ve added full SSL on Cloudflare for both.
The only difference is their site directory on the server, and I’ve changed the IP of the A record and www when moved to the VPS.
Everything works fine only if I keep one domain.
Today I shared the root psw with the engineer (Namecheap) and he said everything looks fine, but they’re unable to offer deeper support since I don’t use cPanel (I use aaPanel).
Hm, not quite sure, but this does not sound to me like an Cloudflare issue
Rather, it could be the vhost file (Nginx) or virtualhost (Apache) is not properly configured as it cannot serve two hostnames (domains) from the same web server, on the same ports and from the same IP?
maybe by default, it’s returning the content from the first of alphabetical order hostnames it can get, despite the different domain name which you enter in a URL address bar?
Correct, each should have separate and it’s own (even user/group in best case scenario).
I run 10s of websites served from one server and one IP (using Nginx), all of them using Cloudflare.
I am sorry to say, but I am not familiar so much with Apache and unfortunately I am afraid that is rather a topic for StackExchange or Reddit at this point, because it is a server configuration issue and not Cloudflare related.
Maybe someone else here might have more experience and know better and reply, but I really do not know.
Finally after changing the respective config files these domains are now working together.
The error? aaPanel added the wrong subdomain name in their config files.
As you suspected , nothing to do with CFlare.
Tomorrow I’m going to switch back to Nginx , as I heard it’s faster than Apache.