[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [community/master] Use wget instead of curl.
commit 1882f3ea3d3a67ad752da03fbbc9a5687d7173b6
Author: gus <gus@xxxxxxxxxxxxxx>
Date: Thu Oct 15 23:01:07 2020 -0400
Use wget instead of curl.
---
.../onion-services/advanced/onion-location/contents.lr | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
diff --git a/content/onion-services/advanced/onion-location/contents.lr b/content/onion-services/advanced/onion-location/contents.lr
index ae3fbeb..6808c37 100644
--- a/content/onion-services/advanced/onion-location/contents.lr
+++ b/content/onion-services/advanced/onion-location/contents.lr
@@ -186,17 +186,14 @@ Or, open the web site in Tor Browser and a purple pill will appear in the addres
### Caddy
-Caddy features [automatic HTTPS](https://caddyserver.com/docs/automatic-https)
-by default, so it provisions your TLS certificate and takes care of
-HTTP-to-HTTPS redirection for you. If you're using Caddy 2, to include an
-Onion-Location header, add the following declaration in your Caddyfile:
+Caddy features [automatic HTTPS](https://caddyserver.com/docs/automatic-https) by default, so it provisions your TLS certificate and takes care of HTTP-to-HTTPS redirection for you.
+If you're using Caddy 2, to include an Onion-Location header, add the following declaration in your Caddyfile:
```
header Onion-Location http://<your-onion-address>.onion{path}
```
-If you're running a static site and have the onion address in a `$TOR_HOSTNAME`
-environment variable, your Caddyfile will look like this:
+If you're running a static site and have the onion address in a `$TOR_HOSTNAME` environment variable, your Caddyfile will look like this:
```
your-website.tld
@@ -208,11 +205,10 @@ file_server
**Testing it out:** Test it out with:
-```
-curl --head https://your-website.tld
-```
+ $ wget --server-response --spider your-website.tld
-and look for the `onion-location` line.
+Look for `onion-location` entry and the onion service address.
+Or, open the web site in Tor Browser and a purple pill will appear in the address bar.
### Using an HTML `<meta>` attribute
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits