Connect to NGINX reverse proxy through proxy

Roman Arutyunyan arut at nginx.com
Mon May 7 10:25:59 UTC 2018


Hello,

On Mon, May 07, 2018 at 05:15:34AM +0000, Ajay Sonawane wrote:
> I am using NGINX as a HTTPS reverse proxy and load balancer. My clients are able to connect to reverse proxy using SSL and reverse proxy is able to terminate SSL connection and establish a new connection with backend server, data exchange is also happening.
> 
> 
> Now I am trying to setup a proxy between a client and NGINX.  I am using SQUID proxy in between. I have enabled proxy protocol on nginx using
> 
> 
>         listen 443  ssl proxy_protocol;

This line instructs nginx to expect PROXY protocol header from SQUID.
Are you sure SQUID sends it?  It looks like SQUID didn't support sending PROXY
protocol header up until recently.

>         proxy_protocol on;
> 
> 
> 
> 
> Still my client is not able to connect to NGINX through proxy. Is there anything else I need to do.

For details it's better to look into error.log.

-- 
Roman Arutyunyan


More information about the nginx mailing list