Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Reverse proxy a .onion (Tor) website |
|
Author |
|
r00ter
Joined: 02 Aug 2021 Posts: 9
|
Posted: Thu 12 Aug '21 20:43 Post subject: Reverse proxy a .onion (Tor) website |
|
|
Hello everyone, I was wondering how it would be possible for me to reverse proxy a Tor hidden website using Apache2? I've already set up a reverse proxy for clear net websites but I don't have a clue on how I would do this for Tor hidden sites.
Thanks |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7407 Location: EU, Germany, Next to Hamburg
|
Posted: Mon 16 Aug '21 19:17 Post subject: |
|
|
You can, if you install Tor (not Tor browser) on your computer.
There is a tutorial how to install tor for that on windows https://bitstobytes.org/tor/ |
|
Back to top |
|
r00ter
Joined: 02 Aug 2021 Posts: 9
|
Posted: Mon 16 Aug '21 20:36 Post subject: |
|
|
Hi yes, I am running Debian buster and have Tor running as a daemon. Though I would like to know how I could make Apache actually proxy the .onion's? So I guess I'd have to make Apache listen under the Tor SOCKS5 proxy? Though I am not entirely sure.
Just setting the tor url in "ProxyPass" and "ProxyPassReverse" gives me a "502 Proxy Error"
Code: | Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request
Reason: DNS lookup failure for: (imagine a tor V2 or V3 url here).onion |
|
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7407 Location: EU, Germany, Next to Hamburg
|
|
Back to top |
|
r00ter
Joined: 02 Aug 2021 Posts: 9
|
Posted: Tue 17 Aug '21 10:52 Post subject: |
|
|
I don't understand, what is "security onion"? |
|
Back to top |
|
|
|
|
|
|