atom feed2 messages in ru.sysoev.nginxnginx as a reverse proxy, forwarding ...
FromSent OnAttachments
roberteleeJan 10, 2011 10:08 am 
roberteleeJan 11, 2011 7:36 am 
Subject:nginx as a reverse proxy, forwarding to a squid proxy server
From:robertelee (ngin@nginx.us)
Date:Jan 10, 2011 10:08:39 am
List:ru.sysoev.nginx

Greetings all,

Was wondering if it is possible to configure nginx as a reverse proxy that forwards to a squid proxy server.

Currently I am using Squid as a forward proxy to another internal Squid proxy server: cache_peer internal_squid_proxy parent 8000 0 no-query cache_peer_access internal_system allow internal_squid_proxy https

I've looked at the reverse proxy SSL write up here: http://www.cyberciti.biz/faq/howto-linux-unix-setup-nginx-ssl-proxy/

That looks pretty close to what I want to do, except instead of reversing directly to a web server, I need to reverse to a forward proxy.

Ie, something like: location / { proxy_pass http://internal_squid_proxy; }

Is there a cache_peer equivalent (instead of proxy_pass) for nginx?

Thank you,

Robert

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,165168,165168#msg-165168