From c70670d98fe7b077edb2f18dda39f53b6651a060 Mon Sep 17 00:00:00 2001 From: tfasano1 Date: Wed, 30 Jun 2021 14:35:15 -0400 Subject: added mirror-site-on-tor.html --- mirror-site-on-tor.html | 78 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 mirror-site-on-tor.html diff --git a/mirror-site-on-tor.html b/mirror-site-on-tor.html new file mode 100644 index 0000000..0481fe6 --- /dev/null +++ b/mirror-site-on-tor.html @@ -0,0 +1,78 @@ + + + + Mirror your site over tor + + + + + + + +

Mirror Your Site Over Tor

+ +
+

+ Now that you have a website, why not offer it on a private alternative such as the onion network? +

+ + +

Setting up Tor

+ +

First, install tor. On Debian it's as simple as:

+ +
 apt install tor
+ +

Then edit the file /etc/tor/torrc, uncommenting the following lines:

+
        HiddenServiceDir /var/lib/tor/hidden_service/
+        HiddenServicePort 80 127.0.0.1:80
+ + +

Now restart tor

+
 systemctl enable --now tor 
+ +

If the next command outputs active in green you're golden!

+
 systemctl status tor
+ +

Now you're server is on the dark web. The following command will give you your onion address:

+
 cat /var/lib/tor/hidden_service/hostname
+ +

Adding the Nginx Config

+

+ From here, the steps are almost identical to setting up a normal website configuration file. + Follow the steps as if you were making a new website on the webserver + tutorial up until the server block of code. Instead, paste this: +

+ +
        server {
+            listen 127.0.0.1:80 ;
+            root /var/www/landchad ;
+            index index.html ;
+            server_name your-onion-address.onion ;
+        }
+ + +

+ From here we are almost done, all we have to do is enable the site and reload nginx which is also covered in the webserver tutorial. +

+ Contributor - tomfasano.xyz + +
+ + + -- cgit v1.2.3 From 8a06de5dc174c6aedfb86eb3b041c360b7d6a511 Mon Sep 17 00:00:00 2001 From: tfasano1 Date: Wed, 30 Jun 2021 14:54:38 -0400 Subject: linked index.html to the article --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 66adf0f..2f1961a 100644 --- a/index.html +++ b/index.html @@ -54,10 +54,11 @@
  • Basic Attention Token (BAT)
  • -

    Excellent Extras

    +

    Excellent Extras

    In the Works...

    -- cgit v1.2.3 From c3e193de4fe95e6b28e581fe1c28b179565de891 Mon Sep 17 00:00:00 2001 From: tfasano1 Date: Wed, 30 Jun 2021 15:03:57 -0400 Subject: added an image to heading --- mirror-site-on-tor.html | 4 ++-- pix/tor.png | Bin 0 -> 28118 bytes 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 pix/tor.png diff --git a/mirror-site-on-tor.html b/mirror-site-on-tor.html index 0481fe6..2d3d8fc 100644 --- a/mirror-site-on-tor.html +++ b/mirror-site-on-tor.html @@ -9,10 +9,10 @@ -

    Mirror Your Site Over Tor

    +

    Mirror Your Site Over Tor onion

    -

    +