SHARE
TWEET

wikileaks mirroring tutorial

a guest Dec 5th, 2010 2,305 Never
  1. #### tutorial about how to set up a wikileaks mirror on Debian with Apache webserver ####
  2. #### see http://213.251.145.96/mass-mirror.html for further information ####
  3.  
  4. # create a DNS entry (named 'wikileaks.mydomain.com' here) in your DNS provider interface
  5. # make it reach to your webserver IP
  6.  
  7. # login to your webserver
  8.  
  9. # create the user that WL will use (named 'wikileaks' here)
  10. useradd -m -d /home/wikileaks wikileaks
  11.  
  12. # set the wikileaks ssh public key
  13. mkdir /home/wikileaks/.ssh
  14. wget http://213.251.145.96/id_rsa.pub -O /home/wikileaks/.ssh/authorized_keys
  15.  
  16. # create the directory which will be used to host the file (name '/var/www/wikileaks.mydomain.com/' here)
  17. # and give the 'wikileaks' user the permission to write
  18. mkdir /var/www/wikileaks.mydomain.com
  19. chown wikileaks:wikileaks /var/www/wikileaks.mydomain.com
  20. chmod u+w /var/www/wikileaks.mydomain.com
  21.  
  22. # set up virtual host (for Apache webserver)
  23. touch /etc/apache2/sites-available/wikileaks.mydomain.com
  24. vim /etc/apache2/sites-available/wikileaks.mydomain.com
  25. # copy the following conf :
  26. <VirtualHost *:80>
  27.         ServerName wikileaks.mydomain.com
  28.         DocumentRoot /var/www/wikileaks.mydomain.com
  29.         <Directory /var/www/wikileaks.mydomain.com>
  30.                 AllowOverride None
  31.         </Directory>
  32.         <Location />
  33.                 Order Allow,Deny
  34.                 Allow from All
  35.         </Location>
  36. </VirtualHost>
  37.  
  38.  
  39. # enable the vhost
  40. ln -s /etc/apache2/sites-available/wikileaks.mydomain.com /etc/apache2/sites-enable/wikileaks.mydomain.com
  41.  
  42. # test the syntax
  43. apache2ctl configtest
  44.  
  45. # load the new conf
  46. apache2ctl graceful
  47.  
  48. # go to http://46.59.1.2/mass-mirror.html to register your mirror
  49. # for the name used in this example, the fields value woud be :
  50. # login : 'wikileaks'
  51. # password : empty (since we use ssh here)
  52. # absolute path : /var/www/wikileaks.mydomain.com
  53. # hostname : wikileaks.mydomain.com
  54. # checkbox : that's up to you ;)
  55.  
  56. # after submitting, the WL teams will begin to send updates through ssh and rsync
  57.  
  58.  
  59. # 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')
RAW Paste Data
Top