User Tools

Site Tools


wiki:avoid_upstream_not_found_nginx_using_only_one_server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
wiki:avoid_upstream_not_found_nginx_using_only_one_server [2023/03/30 16:09] – [Avoid upstream not found in nginx when using only one upstream server] add resolver info antisawiki:avoid_upstream_not_found_nginx_using_only_one_server [2023/04/18 12:34] (current) – add docker tag, formatting antisa
Line 1: Line 1:
-{{tag>nginx}}+{{tag>nginx docker}}
  
 ====== Avoid upstream not found in nginx when using only one upstream server ====== ====== Avoid upstream not found in nginx when using only one upstream server ======
Line 9: Line 9:
   resolver 127.0.0.11 valid=30s; # docker's resolver   resolver 127.0.0.11 valid=30s; # docker's resolver
   set $target "http://target-host:3005";  # variable definition   set $target "http://target-host:3005";  # variable definition
-  location / { proxy_pass $target; }+  location / {  
 +    proxy_pass $target;  
 +  }
 } }
 </code> </code>
wiki/avoid_upstream_not_found_nginx_using_only_one_server.1680185361.txt.gz · Last modified: 2023/03/30 16:09 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki