requirements working running apache webserver
basic linux knwoledge of editing files
if you wanna use nginx click here: • How to host deepweb onion site and make it...
step 1 disable server info :
/etc/apache2/apache2.conf
ServerSignature Off
ServerTokens Prod
this disbales the info
step 2 disblae server status:
sudo a2dismod status
contains server info we dont want anyone to know
normally this is only for localhost to acces
but when someone accesses our tor site .onion it acts as localhost
step 3 install tor:
sudo apt-get install tor
Step 4 generate onion domain:
edit /etc/tor/torrc and uncomment
HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80 127.0.0.1:80
sometimes this is commented so uncomment it and restart tor
Step 5 restart tor:
Service tor restart
Step 6 check your onion domain:
cat /var/lib/tor/hidden_service/hostname
(the folder hidden_service also creates a private key that can be used to
transfer your onion domain to a new server)
Step 7 make onion domain known to apache:
edit /etc/apache2/sites-available/000-default.conf
and add this to end of file
copy the symbols from the video i am not allowed to put greater or smaller then signs in de description
VirtualHost 127.0.0.1:80
ServerName bvibfr576o4zpdr6.onion
ServerAdmin webmaster@localhost
DocumentRoot /var/www/hidden_service
/VirtualHost
after this restart apache sudo systemctl restart apache2
step 8 create content directory:
cd /var/www
sudo mkdir hidden_service
Step 9 make a test file:
inside /var/www/hidden_service
step 10 test the tor website: