DOMAIN and IP Issue

hey,

Ive just setup a Cpanel/WHT server and i dont know what wrong with this one, ive never had such an issue :
ok here it is:
my hostname(servername) is name.mydomain.com
then my main domain is: mydomain.com

now i setup a subdirectory as an seperate account on the servers IP as an shared account : sub.mydomain.com
note: when i put my servers IP (used for shred accounts) it takes me to sub.mydomain.com, however i have other accounts setup on it

Now when i setup the anydomain on a sepperate IP the account gets created but and the home directory and everything but its actually like a mirrior for the sub.mydomain.com and it gives me that in the browser with its files except the domain is anydomain.com ; but when i setit up as an domain based account using the shared IP everythings fine !!

and the other thing is why when i put the shared IP used for namebased domains (Servers IP) in the browser it gives me sub.mydomain.com !!???

Any Ideas Guys ?
Ill appreciate it

 

 

 

 

Top