Re: Website/FTP Management

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx  Z1aaaaaaa@xxxxxxxxxxxxxxxxxxxxxxx
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux