This is the configuration I use with Apache 2.2, some standard modules and a third party one, mod_proxy_html. Tor and polipo are installed on the server as well to make this work of course. I hope anyone finds this useful or has anything to add or share. Starting with a basic sample configuration from mod_proxy_html added to an SSL-enabled Apache vhost, I added: SetOutputFilter INFLATE;DEFLATE ProxyRemote * http://localhost:8118 ProxyRequests Off UseCanonicalName On UseCanonicalPhysicalPort On ProxyHTMLEnable On ProxyPass http://ianxz6zefk72ulzz.onion/ ProxyPassReverse http://ianxz6zefk72ulzz.onion/ ProxyPassReverseCookieDomain ianxz6zefk72ulzz.onion myhostname.tld ProxyPassReverseCookiePath / /sr/ ProxyHTMLURLMap http://www.dkn255hz262ypmii.onion https://myhostname.tld/sr_forums/ ProxyHTMLURLMap http://dkn255hz262ypmii.onion https://myhostname.tld/sr_forums/ ProxyHTMLURLMap http://www.ianxz6zefk72ulzz.onion https://myhostname.tld/sr/ ProxyHTMLURLMap http://ianxz6zefk72ulzz.onion https://myhostname.tld/sr/ ProxyHTMLURLMap / https://myhostname.tld/sr/ e,c UseCanonicalName On UseCanonicalPhysicalPort On ProxyHTMLEnable On ProxyPass http://dkn255hz262ypmii.onion/ ProxyPassReverse http://dkn255hz262ypmii.onion/ ProxyPassReverseCookieDomain dkn255hz262ypmii.onion myhostname.tld ProxyPassReverseCookiePath / /sr_forums/ ProxyHTMLExtended On ProxyHTMLURLMap http://www.dkn255hz262ypmii.onion https://myhostname.tld/sr_forums/ ProxyHTMLURLMap http://dkn255hz262ypmii.onion https://myhostname.tld/sr_forums/ ProxyHTMLURLMap / https://myhostname.tld/sr_forums/ e,c AuthType basic AuthName "Password Required" AuthUserFile "/path/to/etc/apache22/sr.proxy.htpass" Require valid-user