SHARE
TWEET

Untitled

a guest Dec 10th, 2010 148 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. How to setup Debian/Ubuntu Apache2-based server to host a WikiLeaks mirror
  2.  
  3. #1 Create a DNS A record (here 'wikileaks.mydomain.com') in your domain's DNS zone and make it point to your server's IP
  4.  
  5. #2 Create on your webserver the user Wikileaks staff will use to upload the website
  6. useradd -m -d /home/wikileaks wikileaks
  7.  
  8. #3 Set the Wikileaks SSH Public Key
  9. mkdir /home/wikileaks/.ssh
  10. wget http://213.251.145.96/id_rsa.pub -O /home/wikileaks/.ssh/authorized_keys
  11. # Also available on http://46.59.1.2/id_rsa.pub if the first server is down
  12.  
  13. #4 Create the directory which will be used to host the file and give wikileaks user's write permissions:
  14. mkdir /var/www/wikileaks.mydomain.com
  15. chown wikileaks:wikileaks /var/www/wikileaks.mydomain.com
  16. chmod u+w /var/www/wikileaks.mydomain.com
  17.  
  18. #5 Create Apache virtual host
  19. nano /etc/apache2/sites-available/wikileaks.mydomain.com
  20. # With the following content (modify it according to your needs)
  21. <VirtualHost *:80>
  22.         ServerName wikileaks.mydomain.com
  23.         DocumentRoot /var/www/wikileaks.mydomain.com
  24.         <Directory /var/www/wikileaks.mydomain.com>
  25.                 AllowOverride None
  26.         </Directory>
  27.         <Location />
  28.                 Order Allow,Deny
  29.         Allow from All
  30.         </Location>
  31. </VirtualHost>
  32.  
  33. #6 Enable the vhost
  34. a2ensite wikileaks.mydomain.com
  35.  
  36. #7 Verify configuration files
  37. apache2ctl configtest
  38.  
  39. #8 If no errors are given you can load the new configuration files
  40. apache2ctl graceful
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top