cPanel and Host Headers

MielieSpoor

Expert Member
Joined
Dec 6, 2006
Messages
1,984
Reaction score
4
Location
Dublin
Hi guys,

I haven't worked with cPanel in quite a few years and trying to help/guide someone to do something for me but he is useless and clueless when it comes to website host.

Basically the website he has got needs to accept two domain name, domain1.co.za and domain2.co.za. In IIS this is would take about 30s to achieve by updating the website bindings.

The problem is that firstly he is clueless, and secondly he is using cPanel at a cheap to free hosting provider and also that I don't have access to a cPanel setup to try and see where you can do this. How do you setup multiple domain names (host headers) in cPanel so that both domain names point to the website.

To answer the obvious question, the DNS is setup correctly.
 
Hi MielieSpoor

You will have to use the addon domains feature in cPanel to accomplish that.

1) Go to the Addon Domains section of cPanel.
2) Create the addon domain, give it the main docujment root that you need

If there are already domains in the Addon domain section then:
1) Go to the Addon Domains section of cPanel.
2) Click the Edit button for the domain document root that is already pointing at the correct folder.
3) Copy the document root path, then close the popup window.
4) Click the Edit button for the domain document root you wish to point to the other domain’s folder.
5) Paste the path into the document root field, then click change.

Done! :)

Pop us an email ([email protected]) if you need cPanel to test out, we will be welcome to give you a cpanel as a test :)

Regards
MI HOST
www.mihost.co.za
 
If you want domain1.co.za to show the same website as domain2.co.za then parking domain1.co.za on top of domain2.co.za would be the solution. Just use the park domain function in cPanel.
 
Thanks guys. I will pass this on. Hopefully this get sorted now, because this has been coming for about 6-7 months now.
 
+1 on MI HOST solution. I have multiple websites pointing to the same code etc so it works nice
 
Top
Sign up to the MyBroadband newsletter
X