#### tutorial about how to set up a wikileaks mirror on Debian with Apache webserver ####
#### see http://213.251.145.96/mass-mirror.html for further information ####
# create a DNS entry (named 'wikileaks.mydomain.com' here) in your DNS provider interface
# make it reach to your webserver IP
# login to your webserver
# create the user that WL will use (named 'wikileaks' here)
useradd -m -d /home/wikileaks wikileaks
# set the wikileaks ssh public key
mkdir /home/wikileaks/.ssh
wget http://213.251.145.96/id_rsa.pub -O /home/wikileaks/.ssh/authorized_keys
# create the directory which will be used to host the file (name '/var/www/wikileaks.mydomain.com/' here)
# and give the 'wikileaks' user the permission to write
mkdir /var/www/wikileaks.mydomain.com
chown wikileaks:wikileaks /var/www/wikileaks.mydomain.com
chmod u+w /var/www/wikileaks.mydomain.com
# set up virtual host (for Apache webserver)
touch /etc/apache2/sites-available/wikileaks.mydomain.com
vim /etc/apache2/sites-available/wikileaks.mydomain.com
# copy the following conf :
<VirtualHost *:80>
ServerName wikileaks.mydomain.com
DocumentRoot /var/www/wikileaks.mydomain.com
<Directory /var/www/wikileaks.mydomain.com>
AllowOverride None
</Directory>
<Location />
Order Allow,Deny
Allow from All
</Location>
</VirtualHost>
# enable the vhost
ln -s /etc/apache2/sites-available/wikileaks.mydomain.com /etc/apache2/sites-enable/wikileaks.mydomain.com
# test the syntax
apache2ctl configtest
# load the new conf
apache2ctl graceful
# go to http://46.59.1.2/mass-mirror.html to register your mirror
# for the name used in this example, the fields value woud be :
# login : 'wikileaks'
# password : empty (since we use ssh here)
# absolute path : /var/www/wikileaks.mydomain.com
# hostname : wikileaks.mydomain.com
# checkbox : that's up to you ;)
# after submitting, the WL teams will begin to send updates through ssh and rsync
# note : that's not always easy to let other people login to your server. In order to keep confidency, it's recommended (for you) to create a specific user ('wikileaks' here) and check that it can only access (and modify) the directory which has been attributed (here '/var/www/wikileaks.mydomain.com')