Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

point main ip to a user?

Discussion in 'General Discussion' started by pdx, Jan 17, 2005.

  1. pdx

    pdx Member

    Joined:
    Jan 16, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    151
    hello, i've just installed WHM/cPanel, and since i'll only be using it with a couple of web sites, i'd like my main server ip to point to some users's account. for example my ip is 123.123.123.123 and now i get a "There is no website configured at this address" message when i open it. instead, i'd like it to point to account user, which is right now located at 123.123.123.123/~user

    how can i do that?

    thanks in advance
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,701
    Likes Received:
    72
    Trophy Points:
    203
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    pico /usr/local/apache/conf/httpd.conf

    find the first entry for your ip most likly your hostname

    <VirtualHost xxx.xx.xxx.xxx>
    BytesLog domlogs/hostname.domain.com-bytes_log
    ServerName hostname.domain.com
    DocumentRoot /usr/local/apache/htdocs
    </VirtualHost>

    change /usr/local/apache/htdocs
    to /home/someuser/public_html


    or if you httpd.conf that has a file like this

    <VirtualHost xxx.xx.xxx.xxx>
    ServerAlias hostname.domain.com
    </VirtualHost>

    remove the entry above and the user that will be displayed will the first one listed for the IP
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,701
    Likes Received:
    72
    Trophy Points:
    203
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    allmost forgot
    service httpd restart

    to have the changes take effect
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. pdx

    pdx Member

    Joined:
    Jan 16, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    151
    that you, that did it. i just though there's some way to do it through cpanel.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice