Mirroring www.indymedia.org

So to start, let's get you set up as a mirror for www.indymedia.org. To do this the following needs to be done:

1. Install rsyncd on your box, if necessary configure your local firewall or hosts.allow to allow 216.82.161.253 to access your machine via ssh (over rsync)

2. Create a user "earth" who has access to a directory in your web document root (for example, /var/www/earth)

3. Create an apache virtual host entry like the following:


<VirtualHost 216.82.161.253>
        ServerName indymedia.org
        ServerAlias www.indymedia.org
        DirectoryIndex index.php index.html index.shtml
        DocumentRoot /var/www/earth/
        AddType 'application/rss+xml; charset=utf-8' .rss
        RedirectPermanent /features.1-0.rdf http://www.indymedia.org/main-features.rss
        RedirectPermanent /syndication.php3 http://contact.indymedia.org/xml_table.php
        <Directory /var/www/earth>
          Options SymLinksifOwnerMatch IncludesNoExec MultiViews
          AddHandler server-parsed .shtml
          Order allow,deny
          Allow from all
        </Directory>
        Options FollowSymlinks Includes 
        LogFormat "%t \"%r\" %>s %b" nolog
        ErrorLog /var/log/apache/earth/earth_error.log
        CustomLog /var/log/apache/earth/earth_access.log nolog
        ServerAdmin www-tech@lists.indymedia.org
        AddDefaultCharset utf-8
        Redirect /contact http://contact.indymedia.org
        Redirect /front.php3 http://publish.indymedia.org/front.php3
</VirtualHost>

See ApacheLogsWithoutIPs for more details on setting up the apache logs.

4. Make sure your httpd.conf has something like the following:

LoadModule includes_module    modules/mod_include.so
AddModule mod_include.c

5. Create the directory for the log files (mkdir /var/log/apache/earth) if necessary.

6. The following steps apart from tha last one are out of date, there is no need to rsync via ssh, there is a public rsync server now available see MirrorHowTo#WWW you can use a command like this via crom (say every 30 or 60mins):

rsync -vazL --bwlimit=200 rsync://rsync.www.indymedia.org/www.indymedia.org/ /imc/mir/earth/

7. Install the earth public ssh key, send an email to imc-tech@lists.indymedia.org requesting the public key for the earth user from edna for mirroring purposes. Put this public key into the earth user's .ssh/authorized_keys (or .ssh/authorized_keys2) file. Set the permissions properly: chmod -R og-rwx ~/.ssh

8. Make sure that key-based ssh authentication is set up in your sshd. (It probably is. Be certain there is no statement disabling PubkeyAuthentication in your sshd_config.)

9. We strongly suggest that you disable ssh protocol 1 access. To do this, see this link.

10. Notify us that you are set up and we will test the ssh key-based authentication and do the initial rsync. Once the initial rsync has finished, we will set it up to regularly do rsyncs.

11. Once we have verified that the mirror is working properly, we will add your IP address to the round-robin DNS for www.indymedia.org. If things aren't going well, too much traffic, or your IP needs to change, contact dns@lists.indymedia.org to get your IP removed.

See also


-- MicahA - 17 Jan 2004
-- EarthmanWhyTheFsckCantThisHandleSingleNames - 17 Jan 2004
-- JohnDudaAccount - 18 Jan 2004 (changed vhost to turn off ip logging, added Includes option without which things break in most mir setups)
Topic revision: r8 - 20 Dec 2006, ChrisC
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback