nginx as an open proxy

Igor Sysoev is at
Thu Sep 6 18:30:55 MSD 2007

On Thu, Sep 06, 2007 at 11:03:27PM +1000, Tony Lewis wrote:

> I would like to use nginx as an open proxy, using regular expressions to 
> get to any URL.
> For example, if I browse through nginx through a URL like:
> then nginx will proxy to
> I tried working with the rewrite rule, but the best I could get was 
> getting it to try and serve me the file 
> /usr/local/nginx/html/
> Can it be done?  Can someone steer me in the right direction?

Right now nginx does not allow to set any host in proxy_pass.
Currently I'm changing this - it requires non-blocking resolving and
proxy_pass changes.

Igor Sysoev

More information about the nginx mailing list