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.

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:
    1
    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,577
    Likes Received:
    40
    Trophy Points:
    48
    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
     
  3. dalem

    dalem Well-Known Member
    PartnerNOC

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

    to have the changes take effect
     
  4. pdx

    pdx Member

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

Share This Page