Channel | Publish Date | Thumbnail & View Count | Actions |
---|---|---|---|
| 2019-11-07 00:22:19 | ![]() 4,199 Views |
listen 127.0.0.1:80 default_server;
root /var/www/hidden_service;
server_name bvibfr576o4zpdr6.onion;
}
server_name_in_redirect off;
server_tokens off;
port_in_redirect off;
step1:
Install nginx
sudo apt install nginx
step 2:
install tor
sudo apt install tor
step 3:
uncomment the 2 hiddenservice lines in /etc/torrc
nano /etc/torrc
systemctl restart tor
cat /var/lib/tor/hidden_service/hostname
this will show you tour onion address copy it to somewhere cause we will need it
step 4:
create site directory
mkdir /var/www/hidden_service
step 5:
configure nginx default vhost
nano /etc/nginx/sites-available/default
uncomment everything or remove everything and paste this into the file:
server {
listen 127.0.0.1:80 default_server;
root /var/www/hidden_service;
server_name bvibfr576o4zpdr6.onion;
}
put your own onion address in the place of the onion address thtas already there
step 6:
turn off nginx version detection
nano /etc/nginx/nginx.conf
in the http block paste this:
server_name_in_redirect off;
server_tokens off;
port_in_redirect off;
now restart nginx
sudo systemctl restart nginx
Please take the opportunity to connect and share this video with your friends and family if you find it useful.