Related to Transferring virtual domain

James McDonald james
Mon May 17 11:56:02 PDT 2004


Swapana Ghosh wrote:
> Hi
> 
>         I am very new to apache related matters. We have one vitual site under
> one server. The server is down now.  We want to make the site activated. For
> that we are thinking that we will activate this site in a different
> server(redhat8.0)
> 
>         So for that, we are follwing these steps:
> 
>         - making entry of the domain under the new server at httpd.conf file
>         - At the document root we are giving the path
>           suppose  /home/sites/domain/web
>         - this web directory we are copying from the old server 
>         - we are restarting the http at the new server
> 
> When the old server will be up then again we will delete the entry of that site
>  from the new server . Then the site will again be activated at the old
> server.. 
> 
> Is the procedure is ok? Am i missing any steps? 
> 
> Suggessions/advice is needed...

You will need to update DNS to point the domain name to the new web 
server IP address.

Does the server use cgi ? if so make sure you will have to move the 
cgi's aswell and have a scriptAlias

Here is my Virtual Host for the step by step site.


<VirtualHost 192.168.5.12:80>
     ServerAdmin james at jamesmcdonald.id.au
     DocumentRoot /home/james/public_html/sxs
     Redirect /mailman/listinfo http://www.linux-sxs.org/mailman/listinfo
     ScriptAlias /cgi-bin/ "/home/james/public_html/sxs/cgi-bin/"
     ServerName sxs.gotdns.org
     ServerAlias sxs
</VirtualHost>


-- 
James McDonald
Singleton Australia

61+ (0)2 65712401
61+ 0428 320 219

With a gentleman I try to be a gentleman and a half, and with a fraud I
try to be a fraud and a half.
		-- Otto von Bismark

Linux 2.4.20-8 #1 Thu Mar 13 17:18:24 EST 2003 athlon i386 GNU/Linux
21:00:00 up 2:53, 4 users, load average: 1.88, 1.31, 0.69


More information about the Linux-users mailing list