Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 17th May 2012, 21:57
cbj4074 cbj4074 is offline
Senior Member
 
Join Date: Nov 2010
Posts: 392
Thanks: 29
Thanked 58 Times in 50 Posts
Default Websites with same domain name, different IP addresses?

I apologize if this question has been raised before; I did perform a search (and it returned 12 pages, with no relevant results in the first four).

I am wondering about the logic behind preventing two websites from having the same domain name -- when the IP addresses on which to listen are different.

I'm sure someone is thinking, "Why would you ever want to do that?"

I want to do it because I am migrating a website from one IP address to another IP address -- on the same server/ISPConfig installation.

Ideally, I would create identical websites -- one on each IP address -- so that once I update the DNS record (hosted externally), it doesn't matter which IP address the site-visitor hits when he visits the domain in question. The user experience should be the same for each IP address.

Is there a technical reason for which Apache cannot accommodate this setup?

Wouldn't it be perfectly valid to do something like this in the Apache configuration?

Code:
<VirtualHost 1.2.3.4>
DocumentRoot /www/example
ServerName www.example.com
</VirtualHost>

<VirtualHost 4.5.6.7>
DocumentRoot /www/example
ServerName www.example.com
</VirtualHost>
If I try that locally, Apache does not throw warnings/errors, and pages continue to be served from localhost without issue.

Thanks for any insights.
Reply With Quote
Sponsored Links
 

Bookmarks

Tags
apache, hostname, ip address, multiple, vhost

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to access isispConfig3 websites created without domain names kmchen Installation/Configuration 10 6th January 2012 16:16
Postfix/courier/Centos 6 cant send email to external email servers maxtorzito Installation/Configuration 14 7th October 2011 10:56
RoundCube Sends but will not receive. happz Installation/Configuration 33 17th April 2010 21:55
Need help get mail to work (can't recieve and apperently can't send) omega13a Installation/Configuration 19 20th August 2009 21:06
CentoS doesn't send the emails vaio1 Installation/Configuration 18 5th November 2008 17:51


All times are GMT +2. The time now is 09:30.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.