Migrating Servers
am 22.10.2007 23:42:05 von Steve Shaw
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)
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
Order deny,allow
Allow from all
ProxyPass ?? ??
ProxyPassReverse ?? ??
Many thanks in advance
Steve
Re: Migrating Servers
am 29.10.2007 07:28:39 von David McKenzie
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)
>
>
> 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
>
> Order deny,allow
> Allow from all
>
> ProxyPass ?? ??
> ProxyPassReverse ?? ??
>
>
>
>
> 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