I'd like to configure Squid 3.5 (or anything else that could do the job) to act as both a reverse proxy and a forward proxy on the same port.
Leaving a port in the default forward proxy mode makes Squid return an error, when receiving a GET /
request, as it expects to see a protocol and hostname. Configuring it in the accel
reverse proxy mode makes it not support the CONNECT
method.
I see that older versions of Squid had a httpd_accel_with_proxy
config option, but it's deprecated now. I've also tried adding the protocol and hostname to requests that begin with /
using the url_rewrite_program
config option, but Squid appears to check url validity before rewriting them.