Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    pdx
    pdx is offline
    Member
    Join Date
    Jan 2005
    Posts
    8

    Exclamation point main ip to a user?

    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. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2003
    Posts
    1,914

    Default

    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. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2003
    Posts
    1,914

    Default

    allmost forgot
    service httpd restart

    to have the changes take effect

  4. #4
    pdx
    pdx is offline
    Member
    Join Date
    Jan 2005
    Posts
    8

    Default

    that you, that did it. i just though there's some way to do it through cpanel.

Similar Threads & Tags
Similar threads

  1. Point CNAME subdomain to main domain
    By zer4k in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-13-2011, 06:55 AM
  2. How can I Set a domain to point to different IP and mail to main IP
    By kran in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-14-2008, 11:17 PM
  3. cPanel issues (mixing up domains to point to main IP domain)
    By arcane in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 10-30-2004, 11:38 AM
  4. Wanting subdomain to point to main directory
    By Shamele in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-13-2004, 07:21 AM
  5. How to point a domain name to a user directory
    By AndyC in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-06-2002, 12:52 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube