Latest

A Caddyfile for hosting your clearnet domain and all subdomains on Tor

After installing torrc and pointing your hidden service to your Caddy server: # Redirect base domain to www subdomain http://example.onion { redir http://www.example.onion{uri} } # Proxy all subdomains of example.com http://*.example.onion { @hostnames header_regexp hostname Host (\S+)\.example\.onion # note the backslashes before the dots