Setup NGINX from the APT repository
-
> sudo apt install nginx
-
Edit the web server config to link it to tor listening on port 80
> sudo vi /etc/nginx/sites-enabled/default -
Change the listen (so it only points to 127.0.0.1) and server name (points to onion address) in the config
- Restart nginx service
> sudo service nginx restart
Setting up the Website
- go to /var/www/html and delete the files there
- create a test file and test the web address
> vi index.html
type in some text and save the file - Visit the website and confirm its accessible (your address should be different)