Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to setup Debian/Ubuntu Apache2-based server to host a WikiLeaks mirror
- #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
- #2 Create on your webserver the user Wikileaks staff will use to upload the website
- useradd -m -d /home/wikileaks wikileaks
- #3 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
- # Also available on http://46.59.1.2/id_rsa.pub if the first server is down
- #4 Create the directory which will be used to host the file and give wikileaks user's write permissions:
- mkdir /var/www/wikileaks.mydomain.com
- chown wikileaks:wikileaks /var/www/wikileaks.mydomain.com
- chmod u+w /var/www/wikileaks.mydomain.com
- #5 Create Apache virtual host
- nano /etc/apache2/sites-available/wikileaks.mydomain.com
- # With the following content (modify it according to your needs)
- <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>
- #6 Enable the vhost
- a2ensite wikileaks.mydomain.com
- #7 Verify configuration files
- apache2ctl configtest
- #8 If no errors are given you can load the new configuration files
- apache2ctl graceful
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement