Odd Issue Using a Subdomain vs IP Address When Hosting SuiteCrm 7.11.10

For some odd reason I’m able to access my SuiteCRM installation using the ip address or subdomain. I prefer the latter and I’m not sure why I’m able to access it using both. The steps are as follows.

-Install Suite CRM 7.11.10 on Cloud VPS

-Create A record with Cloudflare
Name: suitecrm.mydomain.com
IPv4 Address: my.server.ip.address
TTL: Auto

I confirmed the DNS changes using leafdns.com.

Suitecrm.conf file

<VirtualHost *:80>
     ServerAdmin admin@mydomain.com
     ServerName suitecrm.mydomain.com
     DocumentRoot /var/www/html/suitecrm
	 
   <Directory /var/www/html/suitecrm/>
        Options -indexes +FollowSymlinks
		AllowOverride All
		Require all granted
     </Directory>

     ErrorLog ${APACHE_LOG_DIR}/error.log
     CustomLog ${APACHE_LOG_DIR}/access.log combined
    
 </VirtualHost>

Config.php

'site_url' => 'http://suitecrm.mydomain.com/',

Restarted Apache.

I have no idea why I’m able to access the login page when visiting the ip address. It should automatically redirect to suitecrm.mydomain.com. This process usually works perfectly for other programs, but I’m scratching my head about what I missed.

Thoughts?

I believe that is a server configuration. SuiteCRM is just a service within the server. At the end Subdomain or Domain is just an alias of the IP anyway.

Thanks,

AlxGr

Yeah, it’s a weird issue. Same process worked perfectly with Vtiger. I’ll just deal with it for now.

Again. That’s a server configuration. But, just for information purposes I’ll recommend you to check this post:

https://serverfault.com/questions/583884/apache-listen-only-on-specific-domain-not-ip/583885

Thanks,

AlxGr