In Cloudflare, I configured the IP address of the second domain to point to the first domain, and I disabled Cloudflare Proxy for both domains. When checking from Chrome Dev Tools, I see that both domains have the same IP address:Port (443). However, when I access the second domain, it shows the default web page of the hosting control panel. To resolve the SSL issue, I added the second domain as a website from the hosting control panel (not sure if I did it correctly), but otherwise, I encounter SSL issues. When I checked the second domain from Chrome Dev Tools, it appeared as IP address:Port (80), and when accessing the second domain, it displayed the Apache Default Page. When I selected Full from Cloudflare SSL/TLS settings, it redirected to the first domain with a 301 redirect. To resolve this, I added the second domain from the hosting control panel's website section and assigned the SSL used on the server. Everything seems normal now, but why does the hosting's default page appear when accessing the second domain?
Thank you for contacting WPML Support, I will gladly help you.
Please note that on the WPML side to configure different domains per language, the second domain should point to the default language domain IP (you should see the default language website).