wout000

Member
Mar 13, 2009
8
0
51
Hello all,

I'm puzzled at how I need to set up what I want...so here goes maybe you guys can help me.

What I need:

-A friend asked me if he could have a slice of my server, so I said ok.
-I created a package tailored to his needs

Now it get's tricky.

My friend has it's own domainname, but wants to keep it pointed to his other host for the moment (understandable) in the mean time he want to upload files to my server and check if the site works as needed on my environment.

But here's the kicker, WHM doesn't allow the creation of users without a domain. And if I input his domain, he can't access his file through the web to check if the site is working....

Anyone with an idea on how to get this working as it should?
It would be very much appreciated.
 

raxafarian

Member
Aug 29, 2003
18
0
151
1. Setup the account using his domain name
2. Go to WHM>Security>Security Center>Apache Mod_userdir Tweak
3. If mod user_dir protection is "enabled" go to Step 4. If not enabled, enable it and then go to Step 4.
4. check the box "exclude protection" for his domain

Apache's mod_userdir allows users to view their sites by entering a tilde(~) and their username as the url on a specific host. For example http://<server IP>/~fred/ will bring up the user fred's domain.
 
Last edited:

Zishan

Well-Known Member
Aug 6, 2005
107
1
168
You can create the account with the same domain name or with any dummy domain e.g testdomain.com. As it needs to be tested so the server IP can be used to upload the files to the account. In cPanel environment, the domain can be viewed through temporary URL too as http://11.22.33.44/~cPanel_User/

where 11.22.33.44 is the server IP hosting the site and cPanel_User is the cPanel username of the account that you will setup.
 

wout000

Member
Mar 13, 2009
8
0
51
1. Setup the account using his domain name
2. Go to WHM>Security>Security Center>Apache Mod_userdir Tweak
3. If mod user_dir protection is "enabled" go to Step 4. If not enabled, enable it and then go to Step 4.
4. check the box "exclude protection" for his domain

Apache's mod_userdir allows users to view their sites by entering a tilde(~) and their username as the url on a specific host. For example http://<server IP>/~fred/ will bring up the user fred's domain.
Mod_Userdir was enabled. I enabled the exclude protection checkbox for his domain.

http://<server IP>/~fred/ not working (I used my own IP and his username of course)

Anything I'm forgetting?
 

hydra

Well-Known Member
Mar 26, 2008
102
1
68
Amsterdam, Netherlands
You can create the domain normally.
Alter the DNS to point to the clients server.
Then change the clients hosts file so he can reach his new space.
When he needs hist old server you can revert the changes in the hosts file.
Host file overrules the DNS