we need our new dedicated IP address (and all future ones) to “point” to the same root directory of our VPS’ “parent” domain (main domain with all business logic, where $_SERVER[‘host’] is detected to connect associated files etc. )
So, for example, domain.net (x.x.x.146) should show content of domain.com (x.x.x.170) etc
We have list of dedicated IPs, added to WHM. We have number of domain names, with those IPS as DNS A records. We have added those domains via cPanel to point to the same public_html..
But all the domains resolve to : cgi-sys/defaultwebpage.cgi with “SORRY! If you are the owner of this website, please contact your hosting provider:” error.
Any suggestions? This is supposed to be quite an easy task, but clearly – not so.
Thank you
2
Answers
here is the solution. It is not ideal bot it looks like there's not much we can do, having cPanel/WHM installed.
Why do you need many IP address? one IP address should be enough for what you want to do.
Indeed HTTP/1.1 protocol is meant for this purpose: many different domains for one IP.
In your VPS you can use for example “Apache” as a Web server with this basic configuration:
ceate/edit on “/etc/apache2/sites-available/” example.com.conf :
then create/edit example.org.conf:
and so on..
then to enable your configuration :
If you still want to use many IPs you can install apache in every machine hosting the IP, then redirect to your main site/domain(http://example.com), as shown above. Otherwise, if your hosting provider allow, you can redirect your children domain to your parent domain from your provider website with GUI.