- allforbbs2010-12-07高级会员9592
晒个看看
**#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_keysAlso 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.comWith the following content (modify it according to your needs)
ServerName wikileaks.mydomain.com
DocumentRoot /var/www/wikileaks.mydomain.comAllowOverride None
Order Allow,Deny
Allow from All#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**