1

I configured Tor to set up a hidden service in "c:\webserver\www\hidden_service". When I start Tor Browser, it creates the directory "hidden_service" and the hostname and public_key files inside of it. But when I open the site in Tor Browser using the address provided in hostname (xxxxxxx.onion), I reach the directory one level up (c:\webserver\www) of the one I configured. Any ideas why is this happenig?

Config:

HiddenServiceDir C:\webserver\www\tor_hidden_service
HiddenServicePort 80 127.0.0.1:8080
  • so you see a site where \hidden_service is a hyperlink ? – linuxdev2013 Jun 12 '17 at 4:33
  • 1
    You do not want or need to put anything related to the onion inside of anything related to the httpd. It is not required or safe. That line defines where Tor will store data related to the hidden service, it plays no part in anything about the configuration of your httpd. – cacahuatl Jun 12 '17 at 7:01
  • @linuxdev2013 I see a directory listing, showing the directory 'hidden_service' as a text link – Juan Carlos Jun 12 '17 at 20:19
  • then just like a regular webserver look at the document root for the service – linuxdev2013 Jun 12 '17 at 22:28
1

The configuration of your Tor Onion Service and of your webserver are two separate things. When you want to start a Tor Onion Service you

  1. configure your webserver. That especially means set up a document root. This is the directory where the files live that your webserver should serve.
  2. configure Tor as Tor Onion Service. Here you set the option for the hidden service directory. This directory should live outside of your document root and not be accessible by the webserver.

So in your example the directory tor_hidden_service lives inside the document root and thus the webserver displays it. Just move it to another place in your filesystem and re-configure Tor.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.