Welcome! Log In Create A New Profile

Advanced

nginx as a reverse proxy, forwarding to a squid proxy server

January 10, 2011 01:09PM
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
Subject Author Posted

nginx as a reverse proxy, forwarding to a squid proxy server

robertelee January 10, 2011 01:09PM

Re: nginx as a reverse proxy, forwarding to a squid proxy server

robertelee January 11, 2011 10:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 217
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready