Hi All,<br><br>My understanding is that nginx cannot be used as a forward proxy out of the box. Is this correct?<br><br>If so, my thinking is that by making some small modifications to ngx_http_proxy_module.c, it would be possible to have a nginx.conf file with &quot;proxy_pass asdf&quot;, where asdf ends up being ignored with the new surgical edits to ngx_http_proxy_module.c. Instead of doing the complex lookups to figure out the backend server, it would simply pull out the &quot;Host&quot; from the browser/client request being made, and use that as the appropriate URL to fetch.<br>
<br>Would this work?<br><br>(As a background, I currently have a squid + ICAP setup in transparent proxy mode, and it works fine for proof-of-concept, but falls over in terms of performance. As a result, I&#39;m trying to use nginx as a replacement. And with the http_sub module, I&#39;m thinking I don&#39;t even need ICAP, since we only add a small snippet after the HTML head section of every web page.)<br>
<br>If there are better / easier ways of getting nginx to work as a forward proxy, please let me know, and I&#39;d be happy to contribute the edits back.<br><br>Thanks!<br>Mark<br><br>PS. If the response is in Russian, that&#39;s cool too. I can read it just fine (and speak it), but my writing is rather poor. :-)<br>