Difference between revisions of "How to become a resource repository mirror"

From Armagetron
Line 21: Line 21:
 
     UseCanonicalName On
 
     UseCanonicalName On
 
     AllowOverride All
 
     AllowOverride All
 +
    Options SymLinks
 
  </VirtualHost>
 
  </VirtualHost>
  
 
With Gentoo, this should be <code>/etc/apache2/vhosts.d/02_armagetronad.conf</code>
 
With Gentoo, this should be <code>/etc/apache2/vhosts.d/02_armagetronad.conf</code>
 +
 +
After setting up apache, you need to reload your configuration :)
  
 
=== Sync Document Root ===
 
=== Sync Document Root ===

Revision as of 17:49, 18 February 2007

Requirements

  • Apache 2
    • mod_rewrite
    • ability to edit Apache vhost config
  • rsync
  • One of:
    • cron
    • ssh account

Mirror Setup

Mirror Number

Ask Luke for a mirror number. Be sure to include your machine's IP address(es). References to this mirror number below are in English. For example, 'one' and 'two'.

Setup Apache

Add to your vhost configuration:

<VirtualHost *:80>
    ServerName mirror-number.resource.aa.dashjr.org
    ServerAlias resource.armagetronad.net *.resource.armagetronad.net resource.aa.dashjr.org *.resource.aa.dashjr.org
    ServerPath /
    DocumentRoot /var/www/armagetron/resource/htdocs
    UseCanonicalName On
    AllowOverride All
    Options SymLinks
</VirtualHost>

With Gentoo, this should be /etc/apache2/vhosts.d/02_armagetronad.conf

After setting up apache, you need to reload your configuration :)

Sync Document Root

You probably don't want to run this as root:

mkdir -p/var/www/armagetron/resource
rsync --delete -a rsync://master.resource.aa.dashjr.org/armagetron-resource/ /var/www/armagetron/resource