I use lighttpd, i can access localhost with Firefox, use port 9000,
I modified my torrc
with this port;
HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80 127.0.0.1:9000
Reload, restart..but can't connect to my .onion in tor. I get this error:
Hmm. We’re having trouble finding that site.
We can’t connect to the server at xxxxxxxxxxxxxxxxx.onion.
If that address is correct, here are three other things you can try:
Try again later.
Check your network connection.
If you are connected but behind a firewall, check that Tor Browser has permission to access the Web.
I test the same config on ubuntu & debian.
Update:
my .onion is an v3 56caracters then i added this line to my torrc:
HiddenServiceDir /var/lib/tor/hidden_service
HiddenServiceVersion 3
HiddenServicePort 80 127.0.0.1:9000
Right look like:
root@debian:/var/lib/tor# ls -l
total 5572
drwx--S--- 3 119 avahi 4096 Nov 5 08:33 hidden_service
root@debian:/var/lib/tor/hidden_service# ls -l
total 16
drwx--S--- 2 119 avahi 4096 Nov 2 07:42 authorized_clients
-rwx------ 1 119 avahi 63 Nov 2 16:40 hostname
-rwx------ 1 119 avahi 64 Nov 2 07:42 hs_ed25519_public_key
-rwx------ 1 119 avahi 96 Nov 2 07:42 hs_ed25519_secret_key
Btw i cant access with localhost:9000 on Firefox. But with localhost:80 & localhost it work. (i put port 9000 on config) I followed this guide for install my server: https://www.osradar.com/how-to-install-lighttpd-web-server-on-ubuntu-18-04/
I only test with Ubuntu & Debian, never in Windows.