Large latency increase when using a resolver for proxy_pass

user384829 nginx-forum at
Fri Mar 3 09:53:56 UTC 2017

Hi Maxim,
Thanks for the reply.

What about if we used a stream/tcp proxy_pass with resolver? Something like

resolver ipv6=off; 

stream {
  server { 
    listen localhost:81; 
    set $upstream_host;
    proxy_pass $upstream_host:443; 

server { 
  listen 80; 
  location ~ /api/ { 
    rewrite /api/(.*) /$1 break;
    proxy_ssl_verify off; 
    proxy_pass https://localhost:81; 

Would this work?

Posted at Nginx Forum:,272679,272732#msg-272732

More information about the nginx mailing list