Home » guide » How to create a .onion Web Server

How to create a .onion Web Server

Setup NGINX from the APT repository

  1. > sudo apt install nginx
  2. Edit the web server config to link it to tor listening on port 80
    > sudo vi /etc/nginx/sites-enabled/default
  3. Change the listen (so it only points to 127.0.0.1) and server name (points to onion address) in the config
  4. Restart nginx service
    > sudo service nginx restart

Setting up the Website

  1. go to /var/www/html and delete the files there
  2. create a test file and test the web address
    > vi index.html
    type in some text and save the file
  3. Visit the website and confirm its accessible (your address should be different)