Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member ryno267's Avatar
    Join Date
    Mar 2004
    Location
    Chandler, AZ
    Posts
    214
    cPanel/Enkompass Access Level

    Root Administrator

    Default How To change main site of shared IP

    Let me set this up:

    my NS1. IP is *.30 and NS2 is *.23
    my main shared IP is *.29

    When you type in the *.29 IP one of the shared sites comes up, and thus does when new sites haven't propogated yet and are using temporary access.

    I want to change that site that comes up on the main *.29 IP address.

    The domain I want to change it to is the main domain on the NS1 *.30 IP

    Normally i know you can just move the domain on the same IP as *.29 to the top of the virtual hosts, but i'm nervous doing that as the domain I want to use is the main on *.30



    How do I get the domain.us that's the main on *.30 (NS1) to also be the default on my main shared IP of *.29

    Thanks guys!

  2. #2
    Member
    Join Date
    Aug 2006
    Posts
    7

    Default

    Hello,


    sorry for delay,


    you can set the main site of shared ip to default (cpanel page)

    login via SSH

    1 -
    PHP Code:
    cd /usr/local/apache/conf 
    2 -
    PHP Code:
    cp httpd.conf httpd.conf.back 
    3 -
    PHP Code:
    pico httpd.conf 
    4 - press Ctrl + W
    5 - search for
    PHP Code:
    SSL Virtual Host Context 
    6 - after :

    Code:
    ##
    ## SSL Virtual Host Context
    ##
    
    
    </IfDefine>
    add :

    Code:
    NameVirtualHost xxx.xxx.xxx.xxx:80
    
    <VirtualHost xxx.xxx.xxx.xxx>
    BytesLog domlogs/server.host.com-bytes_log
    ServerName server.host.com
    DocumentRoot /usr/local/apache/htdocs
    </VirtualHost>
    in the code above, change xxx.xxx.xxx.xxx with your shared ip

    change server.host.com with your host name.

    7 - Press Ctrl + X then type 'y' then 'enter' then 'enter' again

    restart the Apache by : service httpd restart

    try to open your shared ip you will find the default cpanel page

    Note : you can set the directory to an exist account on your server as the directory of the main site . and the server name to the domain of your main site.

    i hope that i helped ya


    Good Luck

    Ramy

Similar Threads & Tags
Similar threads

  1. Help: change of main shared ip
    By CoolMike in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-08-2009, 02:27 AM
  2. Can't change main shared IP
    By dandanfireman in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-07-2007, 02:00 PM
  3. Main Shared IP Change
    By sadique in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-22-2006, 11:44 AM
  4. Stop site from using main shared IP as dedicated IP
    By snet in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-26-2005, 09:29 AM
  5. main shared IP showing user's site
    By Stellar in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 12-24-2004, 05:46 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube