I need to create a hidden service of a website accessible thru my home lan network, from my PC ( where Tor is also running, I connect to mywebsite.com, mywebsite.com points to (I know cause I've pinged it). The problem is that http://mywebsite.com is a virtualhost so if I create a hidden service to when I connect to it thru the browser it gives me an error because doesen't view mywebsite.com but only z random error page. The main issue is that I don't have access to the webservers config, because is a closed box (It looks like a router) and not a PC, so I can't modify the apache (or whatever it uses) making ports like I've read you have to do to make a hidden service of a virtual host. thanks for your help

1 Answer 1


Typically what one does when you want to have tor on one machine and then the webserver on another is to run for example apache on both machines, then when people connect to the one which hosts the tor domain it will then forward the connection to the other webserver.

This enables you to easily isolate the webserver from everything else. This is how it's done in for example the 'Whonix' gateway.

There are examples for this setup type here:


  • hi tnx for your kind reply, i'm using jamescoyle.net/how-to/116-simple-apache-reverse-proxy-example and it works, but i'd like to point tor to rather than localhost, infact i aready got folders and webpages in / that i'd like to use in tor, if i write <Location /site2> it gives me an error, it only works if i use <Location />, but under / ive got many folder so when i access it goes to site 2 and i cant see nothing of the othe rfolder anymore
    – pinco
    Commented Sep 3, 2014 at 21:53
  • it doesent work anyway, at least it works to connect to remote ip but not to the url, so if the remote ip has virtualhosts they won't show up
    – pinco
    Commented Sep 3, 2014 at 22:23
  • try to play with DNS for your "black box" and a reverse proxy
    – Alexey Vesnin
    Commented Jan 26, 2016 at 19:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .