Re: IP assignment for virtual webhosting

There was a solution for this on this list a few days ago... How to move a hostname based virtual webserver: I have to webservers A and B (10.0.0.1) and (10.0.0.2) and want to move site www.cust.com from A to B The config on A is at the moment <VirtualHost 10.0.0.1> ServerName www.cust.com DocumentRoot ... </VirtualHost> Now move the data to B, change the nameserver entry for www.cust.com to point to 10.0.0.2 and create a www2.cust.com also to point to 10.0.0.2. The config file on B becomes <VirtualHost 10.0.0.2> ServerName www.cust.com ServerAlias www2.cust.com DocumentRoot ... </VirtualHost> and the config on A becomes <VirtualHost 10.0.0.1> ServerName www.cust.com Redirect / http://www2.cust.com/ </VirtualHost> So all request still coming in into A are redirected to the new name www2 (no DNS cache) and the DNS servers that are up to date go directly to B. Wait some time and remove the www2 entry from the DNS and clean up the config files. ------------------------------------------------ BS Web Services Roedingsmarkt 14 20459 Hamburg Germany info@bsmail.de www.bsws.de fon: +49 40 3750357-0 fax: +49 40 3750357-5 PLEASE USE EMAIL WHERE POSSIBLE Daniel Roesen <noc@entire-sy To: lir-wg@ripe.net stems.com> cc: Sent by: Subject: Re: IP assignment for virtual webhosting owner-lir-wg@r ipe.net 11.05.00 16:27 On Thu, May 11, 2000 at 04:09:45PM +0200, Herbert Baerten wrote:
And I agree with Daniel that accounting is a very important issue here. Security is another one, firewalls being configured based on source and destination IP addresses.
And another (although minor) point: you loose flexibilty. Situation: you want to move a bunch of domains hosted on server A to another server B because of system load or whatever. With name-based vhosting you have to do the usual DNS changes and wait for DNS convergency (DNS cache timeouts) to start the move. With IP-based vhosting you can act in minutes. Move config over to server B, take down IP on server A, activate IP on server B and you're set. This means in the name-based vhosting case i have about a week (usual RR TTL) before being able to react on the slashdot effect in contrary to IP-based vhosting where I'm able to react in minutes. I already saw several well known sites suffering from exactly THIS problem. Especially for companies like us with very limited upstream bandwidth. Best regards, Daniel Roesen Entire Systems NOC -- Entire Systems Network Operations Center noc@entire-systems.com Entire Systems GmbH - Ferbachstrasse 12 - 56203 Hoehr-Grenzhausen, Germany InterNIC-Handle: ES1238-ORG RIPE-Handle: ESN10-RIPE Tel: +49 2624 9550-55 GnuPG/PGP Key-ID: 0xBF3C40C9 http://www.entire-systems.com/noc/noc-key.asc GnuPG/PGP Fingerprint: 1F3F B675 1A38 D87C EB3C 6090 C6B9 DF48 BF3C 40C9

On Thu, May 11, 2000 at 04:37:08PM +0200, henning.brauer@bsmail.de wrote:
There was a solution for this on this list a few days ago...
Sure, but you're screwed if you you auto-generate your zonefiles and VHost-configs from databases and you want to move many VHosts... Best regards, Daniel Roesen Entire Systems NOC -- Entire Systems Network Operations Center noc@entire-systems.com Entire Systems GmbH - Ferbachstrasse 12 - 56203 Hoehr-Grenzhausen, Germany InterNIC-Handle: ES1238-ORG RIPE-Handle: ESN10-RIPE Tel: +49 2624 9550-55 GnuPG/PGP Key-ID: 0xBF3C40C9 http://www.entire-systems.com/noc/noc-key.asc GnuPG/PGP Fingerprint: 1F3F B675 1A38 D87C EB3C 6090 C6B9 DF48 BF3C 40C9

On Thu, 11 May 2000, Daniel Roesen wrote:
On Thu, May 11, 2000 at 04:37:08PM +0200, henning.brauer@bsmail.de wrote:
There was a solution for this on this list a few days ago...
Sure, but you're screwed if you you auto-generate your zonefiles and VHost-configs from databases and you want to move many VHosts...
And this solution also breaks some web sites - you can't redirect POSTs (imagine a site that has forms linking to it from all over the web - you simply can't change them all). And besides, I've seen many sites that use full-blown URLs in their local <form> tags. And, after this kind of a change, you have to keep the www2.example.com "alive" forever<tm>. (and I'm not even talking about the customer's point of view - he certainly isn't pleased to find out that suddenly his website has mystically "moved" from www.example.com to www2.example.com, as said by the Address -field of his web browser) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Juha Suhonen THK-Net Cabinet Group, Systems Administrator Tel +358 9 6126 580 Fax +358 9 61265899 http://www.thk.net ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

On Thu, May 11, 2000 at 04:51:26PM +0200, Daniel Roesen wrote:
Sure, but you're screwed if you you auto-generate your zonefiles and VHost-configs from databases and you want to move many VHosts...
And it bites you right were it hurts most, if your customers website depends in any way on absolute links to http://www.foo.bar/, so www.foo.bar still gets all request and has to send redirects. Worst case: customer uses all-absolute links and depends on "www.foo.bar" in CGIs parsing HTTP Host infos or has some htaccess tricks or whatever. I'm not an Apache expert at all so others may comment on this. I have a horror about moving xx sites to another host and seeing some percentage being broken. Daniel Roesen Entire Systems NOC -- Entire Systems Network Operations Center noc@entire-systems.com Entire Systems GmbH - Ferbachstrasse 12 - 56203 Hoehr-Grenzhausen, Germany InterNIC-Handle: ES1238-ORG RIPE-Handle: ESN10-RIPE Tel: +49 2624 9550-55 GnuPG/PGP Key-ID: 0xBF3C40C9 http://www.entire-systems.com/noc/noc-key.asc GnuPG/PGP Fingerprint: 1F3F B675 1A38 D87C EB3C 6090 C6B9 DF48 BF3C 40C9
participants (3)
-
Daniel Roesen
-
henning.brauer@bsmail.de
-
Juha Suhonen