If somebody can help with this I'd be grateful.

I have several accounts on my CentOs server managed by WHM/cPanel - to browse to an account via http I simply go to http://myserver/~accountname

Fair enough, but then root relative links in each site don't work because the server is the root and not the account. Obviously it's fine when a domain is applied to the account but no good during testing.

In the past when I've used Debian I have managed to set an alias like accountname.myserver.com. The is obviously then the account root - can this be done on CentOS?

Thanks