I have installed cPanel & WHM: The Hosting Platform of Choice on my ec2 micro instance. Now I am trying to run a website on it. I created a new account with whm which points to the same ip as my server ip(WHM generated it, means I didn't get to choose which ip to use). Now the server ip is a amazon elastic ip. I only have this ip.
I checked the option to use domain registrar nameserver and on dot tk panel I used their free DNS. They supply their default nameservers. I pointed this domain to only ip I have i.e server ip. Now when I user that domain it takes me to server page. example.tk/cgi-sys/defaultwebpage.cgi example.tk is my domain name. But what I want is it should take me to exampke.tk/~user5/ here user5 is my newly created account username.It's for test purpose I will change it. I am working on this for 3 days but couldn't figure out what to do. according to me problem is that my whm nameserver( I choose bind is not working). I have tried using my own DNS in dot tk panel but I only have 1 ip address so where should I point nameservers. For test purpose I pointed both nameservers to my server ip(amazon elastic ip) and opened port 53(for inbound) on aws setting and choosing anywhere access.
On my list accounts page, when I click on domain link it takes me to the server ip and when i click on ip address it takes me correct destination. I think problem is my server cannot point domain to correct destination.
Can I do this using 1 ip only. Also I have no problem in using server root ip to host my website, if it just takes me to my website homepage. but you can see on above first link it takes me to a page which shows some error.
I want to know how to configure my domain that it point to correct address. Any help would be appreciate. Thanks
I checked the option to use domain registrar nameserver and on dot tk panel I used their free DNS. They supply their default nameservers. I pointed this domain to only ip I have i.e server ip. Now when I user that domain it takes me to server page. example.tk/cgi-sys/defaultwebpage.cgi example.tk is my domain name. But what I want is it should take me to exampke.tk/~user5/ here user5 is my newly created account username.It's for test purpose I will change it. I am working on this for 3 days but couldn't figure out what to do. according to me problem is that my whm nameserver( I choose bind is not working). I have tried using my own DNS in dot tk panel but I only have 1 ip address so where should I point nameservers. For test purpose I pointed both nameservers to my server ip(amazon elastic ip) and opened port 53(for inbound) on aws setting and choosing anywhere access.
On my list accounts page, when I click on domain link it takes me to the server ip and when i click on ip address it takes me correct destination. I think problem is my server cannot point domain to correct destination.
Can I do this using 1 ip only. Also I have no problem in using server root ip to host my website, if it just takes me to my website homepage. but you can see on above first link it takes me to a page which shows some error.
I want to know how to configure my domain that it point to correct address. Any help would be appreciate. Thanks
Last edited by a moderator: