Notes
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