Running .onion website
To set up an .onion hidden service, you will need:
- buy a VPS or hosting with Tor installed
- install a web server like Apache, Nginx
- generate custom .onion address (optional)
The basics
Before you proceed, read the official guide Set up Your Onion Service
and Best Practices for Hosting Onion Services
.
- Tor Project - Set up Your Onion Service (clearnet)
- riseup.net - Best Practices for Hosting Onion Services
Whonix
The recommended setup is running .onion site inside Whonix Workstation virtual machine. Read the official manual how to install Whonix and how to set up .onion hidden services.
This architecture ensures your .onion site work in a secure environment where all traffic is routed through Tor via Whonix Gateway making it impossible to leak the real IP address of the VPS server where your .onion site is located.