As Tor is not a http proxy but a Socks one you cannot insert .onion name or IP in proxy_pass directive. In order to use Nginx as reverse proxy to .onion sites you will need a socat. Socat is a command line based utility that establishes two bidirectional data streams and transfers between them. This …