Suppose I have a dedicated IP 1.2.3.4 for my VPS, and default domain name "example.com".
I also have some addon domains, which resolve to the same IP. When browsing to either the main domain name or an addon domain, Apache and/or cPanel (not sure which?) will be able to tell which site (i.e. which document root) to use, depening on the host/domain name I used in the URL.
However, if I browse directly to the IP, e.g. http://1.2.3.4/ I get the default "Apache is working on your cPanel® and WHM™ Server" page.
Can I somehow configure things so that users visiting http://1.2.3.4/ are getting the site for the default domain? (that is, the same as www.example.com, rather than the default cpanel/apache page)
Note: I don't necessarily mean redirect them to www.example.com (although that would be OK as well), but I mean actually getting the main site by its IP (instead of the domain name it resolves to).
I also have some addon domains, which resolve to the same IP. When browsing to either the main domain name or an addon domain, Apache and/or cPanel (not sure which?) will be able to tell which site (i.e. which document root) to use, depening on the host/domain name I used in the URL.
However, if I browse directly to the IP, e.g. http://1.2.3.4/ I get the default "Apache is working on your cPanel® and WHM™ Server" page.
Can I somehow configure things so that users visiting http://1.2.3.4/ are getting the site for the default domain? (that is, the same as www.example.com, rather than the default cpanel/apache page)
Note: I don't necessarily mean redirect them to www.example.com (although that would be OK as well), but I mean actually getting the main site by its IP (instead of the domain name it resolves to).