hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : How to Setup Multiple IPs with Single Domain on CPANEL/CentOS Server
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

How to Setup Multiple IPs with Single Domain on CPANEL/CentOS Server

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 03-05-2012, 10:44 AM
Asiff Asiff is offline
Newbie
 
Join Date: Aug 2011
Posts: 10

How to Setup Multiple IPs with Single Domain on CPANEL/CentOS Server


I have a WHM/Cpanel server (CENT OS).
I want to change my Primary Domain IP address, but the problem is that when it Change IP for my Domain (via WHM), than those Visitors where the DNS has not Refreshed shows DEFAULT PAGE.

Lets suppose:
Domain = www.mydomain.com goes to IP: 202.202.202.1

So in Cpanel its like http://202.202.202.1/~mydomain to access my Domain.

But i want my site to be accessible from my NEW IP: 202.202.202.2 as well.

e.g. http://202.202.202.2/~mydomain

In short, both IP's will open that Domain name.


Does anyone have any idea how to do it exactly (considering i am noob).

Reply With Quote


Sponsored Links
  #2  
Old 03-06-2012, 12:41 AM
shakybaky shakybaky is offline
Disabled
 
Join Date: Mar 2008
Posts: 48
first off, why would you do that? I see the reasons behind pointing multiple domain names to the same ip, but not multiple ips to the same domain.

My guess would be to setup a new user with that ip address in virtual hosts, then symlink back to the original ips directory. I dont use whm/cpanel so I couldnt tell you how to do that there.

Reply With Quote
  #3  
Old 03-06-2012, 12:43 AM
rockgeeks rockgeeks is offline
Junior Guru Wannabe
 
Join Date: Feb 2012
Posts: 37
Well, Please check the following documentation for your more help....

http://docs.cpanel.net/twiki/bin/vie...s/ChangeSiteIP

__________________
http://www.rockhostingsupport.com/: 24x7 Technical Support | Server Management | Migration | All types of control Panel Installation & Configuration | Server Monitoring

Reply With Quote
Sponsored Links
  #4  
Old 03-06-2012, 02:17 AM
Hostify Networks Hostify Networks is online now
Web Hosting Guru
 
Join Date: May 2009
Location: Tennessee
Posts: 295
You can do this by modifying httpd.conf manually. See the "Serving the same content on different IP addresses" section in the Apache docs for more information: http://httpd.apache.org/docs/2.0/vhosts/examples.html

Basically, just add the second address to the appropriate virtualhost(s). Assuming you're familiar with SSH, all you'd do is
Code:
nano /usr/local/apache/conf/httpd.conf
and then add the IP address to the virtualhost of your domain(s):
Code:
<VirtualHost 202.202.202.1:80 202.202.202.2:80>
    ServerName mydomain.com
    ServerAlias www.mydomain.com
</VirtualHost>
save the configuration and then restart Apache.

NOTE: make a backup of the Apache configuration before making modifications.

__________________
AudioProbe.net - Playing the best music from the 70s, 80s, 90s, 00s, and more...
Commercial free, high quality 192kb/s, and firewall friendly port 80!
Look for us in the iTunes Radio directory under Adult Contemporary

Reply With Quote
  #5  
Old 03-06-2012, 12:51 PM
Asiff Asiff is offline
Newbie
 
Join Date: Aug 2011
Posts: 10
Thanks 'Hostify Networks' it worked.


Did created a Duplicate entry for the domain in Virtual Hosts (replaced the IP).

Did added the A ENTRY into domain DNS, and did the trick

Thanks once again for the tip.

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple IPs on single server - configuring multiple websites jay-ctg Dedicated Server 7 01-24-2012 06:13 PM
Single domain on Centos 6 Cameleon Hosting Software and Control Panels 1 07-20-2011 12:30 PM
Windows 2003 Web Hosting From $4.95. Single Domain, Multiple Domain, & Reseller Layerblue Shared Hosting Offers 0 09-22-2005 01:20 AM
Windows 2003 Web Hosting From $4.95. Single Domain, Multiple Domain, & Reseller Layerblue Shared Hosting Offers 0 07-22-2005 02:10 PM
Windows 2003 Web Hosting From $4.95. Single Domain, Multiple Domain, & Reseller Layerblue Shared Hosting Offers 0 06-01-2005 07:15 PM

Related posts from TheWhir.com
Title Type Date Posted
Inerol Solutions Launches XEN VPS Hosting Service Web Hosting News 2013-04-08 12:32:06
cPanel Conference 2012: Virtualize All the Things with Nate Custer Web Hosting News 2012-11-12 13:54:36
Web Host ServerPronto Donates Hosting Resources to CentOS Web Hosting News 2012-07-05 14:06:27
Web Host SiteServing Launches Eight VPS Hosting Plans Web Hosting News 2011-09-13 17:58:05
Web Host NetHosting Announces Support for CentOS 6 Web Hosting News 2011-07-05 20:15:20


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?