Use a variable for the domain name; this way allows you to customize how frequently NGINX recursively resolves the domain name. resolver 10.0.0.4 valid=20s; server {location / {set $backend_servers backend.seimaxim.com;proxy_pass http://$backend_servers:8080;}} When a variable is used in the proxy_pass directive to define the domain name, NGINX reresolves the domain name when the TTL expires. To …
