The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

I'm puzzled

Discussion in 'Security' started by wout000, Mar 13, 2009.

  1. wout000

    wout000 Member

    Joined:
    Mar 13, 2009
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  2. raxafarian

    raxafarian Member

    Joined:
    Aug 29, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
    #2 raxafarian, Mar 13, 2009
    Last edited: Mar 13, 2009
  3. Zishan

    Zishan Well-Known Member

    Joined:
    Aug 6, 2005
    Messages:
    104
    Likes Received:
    1
    Trophy Points:
    0
    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.
     
  4. wout000

    wout000 Member

    Joined:
    Mar 13, 2009
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  5. hydra

    hydra Well-Known Member

    Joined:
    Mar 26, 2008
    Messages:
    102
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    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
     
Loading...

Share This Page