Re: PROXY protocol to upstream server

2018-08-12 Thread Danila Vershinin
Hi Maxim, I understand. Followup question is: Is NGINX capable of presenting clients with different SSL certificate based on SNI? As in: stream { server { ssl_certificate foo.example.com .crt; ssl_certificate bar.example.com .

Re: Actions after cache miss is detected

2018-08-12 Thread Maxim Dounin
Hello! On Fri, Aug 10, 2018 at 09:05:30AM -0700, Roger Fischer wrote: > Is there a way to perform an action after a cache miss is > detected but before the request is forwarded to the upstream > server? > > Specifically, on a cache miss I want to: > Return a response instead of forwarding the

Re: PROXY protocol to upstream server

2018-08-12 Thread Maxim Dounin
Hello! On Sun, Aug 12, 2018 at 11:33:25PM +0300, Danila Vershinin wrote: > It seems that nginx can accept PROXY protocol fine, but when it > comes to forwarding, it can only do so only within a stream { > server { … proxy_protocol on; } } . > > Are there any plans to add proxy_protocol on; for

PROXY protocol to upstream server

2018-08-12 Thread Danila Vershinin
Hi, It seems that nginx can accept PROXY protocol fine, but when it comes to forwarding, it can only do so only within a stream { server { … proxy_protocol on; } } . Are there any plans to add proxy_protocol on; for regular HTTP server blocks so it can be used alongside proxy_pass? This would