Apache Server configuration support - Migrating Servers

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > October 2007 > Migrating Servers





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Migrating Servers
Steve Shaw

2007-10-22, 7:25 pm

Hi

I'm in the process of migrating between and old and new server, lets
call them "new" and "old". I've copied all the web sites from old to new
but only want one of the websites to be delivered from new server and
the rest to still come from the old server. I understand I need to proxy
the requests but i'm not having much luck

Here is the virtual host definition I use (have a number of similar name
based virtual hosts for other sites) - with what i believe is the
necessary added proxy element - but am not sure what to use as the
parameters for ProxyPass and ProxyPassReverse since the incoming request
to www.mywebsite.com (on the new server) needs to be mapped to
www.mywebsite.com (but on the old server)

<VirtualHost *:80>
DocumentRoot /usr/mywebsite
ServerName mywebsite.com
ServerAlias www.mywebsite.com
ErrorLog logs/mywebsite.com-error_log
CustomLog logs/mywebsite.com-access_log common

# Added proxy element
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass ?? ??
ProxyPassReverse ?? ??

</VirtualHost>


Many thanks in advance
Steve
David McKenzie

2007-10-29, 1:36 am

Steve Shaw wrote:
> Hi
>
> I'm in the process of migrating between and old and new server, lets
> call them "new" and "old". I've copied all the web sites from old to new
> but only want one of the websites to be delivered from new server and
> the rest to still come from the old server. I understand I need to proxy
> the requests but i'm not having much luck
>
> Here is the virtual host definition I use (have a number of similar name
> based virtual hosts for other sites) - with what i believe is the
> necessary added proxy element - but am not sure what to use as the
> parameters for ProxyPass and ProxyPassReverse since the incoming request
> to www.mywebsite.com (on the new server) needs to be mapped to
> www.mywebsite.com (but on the old server)
>
> <VirtualHost *:80>
> DocumentRoot /usr/mywebsite
> ServerName mywebsite.com
> ServerAlias www.mywebsite.com
> ErrorLog logs/mywebsite.com-error_log
> CustomLog logs/mywebsite.com-access_log common
>
> # Added proxy element
> ProxyRequests Off
> <Proxy *>
> Order deny,allow
> Allow from all
> </Proxy>
> ProxyPass ?? ??
> ProxyPassReverse ?? ??
>
> </VirtualHost>
>
>
> Many thanks in advance
> Steve

Well the servers would have different IP addresses, right? So only
change the DNS on the domain you wish to transfer. If they have the same
IP then you will not be able to do this.

If it is on a local network and NATed, you will need to change the
router config.

--
DM davidm@cia.com.au

'It would go against respecting principles and truth if you have to
respect and accept anything just because it is the other side's view.'
- Kim Jung Ill
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com