Website/FTP Management

John Summerfied debian at herakles.homelinux.org
Wed Jun 29 07:34:42 UTC 2005


Jonathan Allen wrote:
> Hi All,
> 
> Can anyone recommend a good package for maintaining a remote website
> using FTP ?  I manage several websites, keeping the 'master' on my FC3
> machine - what I need is a way to have the remote website look like a
> mirror of my master tree.  I looked at the 'mirror' package, but it
> works exactly the other way round.
> 
> Any good recommendations ?

As someone else said, I'd use ssh and to mirror the master.

Create the correct directory structure in (say) /var/www for each site 
(or a subdir of /var/www for each client if appropriate):
/var/www/cds.merseine.nu
/var/www/herakles.homelinux.org
etc
You might also do something the same for the http conf files: put each 
vhost into its own file
/etc/httpd/conf/vhosts/{cds.merseine.nu,herakles.homelinux.org}
etc

use rync over ssh to keep things in sync. Read the man page, there are 
numerous options, but you will need:
rsync --recursive --times --perms --delete --exclude=\*~ \ 
/var/www/cds.merseine.nu www.clienta.com:/var/www/cds.merseine.nu
and so on.
You can copy the config files, but you may also need to transform them 
on arrival (eg to change host names), before restarting the web server, 
unless you play games with DNS.

In httpd.conf you can
include /etc/httpd/conf/vhosts/*.conf

and you _can_ use a different directory:
/etc/httpd/conf/activevhosts/*.conf
and populate it with symlinks to the real configs.


-- 

Cheers
John

-- spambait
1aaaaaaa at computerdatasafe.com.au  Z1aaaaaaa at computerdatasafe.com.au
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/




More information about the fedora-list mailing list