Thank you for the direction where to look. You were right. It was too wide of a wildcard in http{} section outside of server/location. Fixed now.by w_boba - Nginx Mailing List - English
I have several different "templates" for location and most of templates have common part like this: ---------------------- /etc/nginx/nginx.conf: http { include /etc/nginx/conf.d/*.conf; } ---------------------- /etc/nginx/conf.d/config12345.conf: server { listen 12345; location / { some configuration; } location /special { include tempby w_boba - Nginx Mailing List - English
Hello, All ! I am wondering, if it is possible to limit visibility of a variable in Nginx ? For example if some variable was set inside "server" block, it is visible only within this "server" and not outside. I've done some reading and it looks like variables once defined somewhere in config are visible to all other parts of the Nginx configuration... Maybe there is someby w_boba - How to...
Is there a way to log actual upstream server IP address ? There is a variable "$proxy_host", but it logs "upstream" section name instead of the actual IP address. edit: I forgot to add. I know, there is "$upstream_addr" variable, but it contains ALL the upstream servers that were checked for the page. And I only need one that has actually returned the page. I do noby w_boba - How to...