Have you thought about using a shared file system for the cache. This way all the nginx 's are looking at the same cached content. On Jul 7, 2017 5:30 AM, Joan Tomàs i Buliart <joan.tomas@marfeel.com> wrote: Hi Lucas On 07/07/17 12:12, Lucas Rolff wrote: > Instead of doing round robin load balancing why not do a URI based > load balancing? Then you ensure your cached file isby frank3427 - Nginx Mailing List - English
Aleks, How does this look? server { listen *:443 ssl; server_name ~^(?<prefix>rwa|m2m|dwa)-(?<routing_key>\w+)-(\w+)\.(?<domain>(diasranch.net))(:\d+)?$; proxy_read_timeout 86400s; proxy_buffering off; #access_log /logs/ssl_access.log; error_log /logs/ssl_error.log error; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphersby frank3427 - Nginx Mailing List - English
so far I have come up with the following but , I have been reading that using if statements is bad. if ($http_host ~ "^rwa-(.*)"){ set $rule_0 1; set $bref_2 $2; set $bref_7 $7; } if ($http_host ~ "^m2m-(.*)"){ set $rule_0 1; set $bref_2 $2; set $bref_7 $7; } if ($http_host ~ "^dwa-(.*)"){ set $rule_0 1; set $bref_2 $2; set $bref_7 $7; } if ($rule_0 =by frank3427 - Nginx Mailing List - English
Alex, I have a LUA version of the PHP script. I am not sure about the multiple rewrite or conditionsby frank3427 - Nginx Mailing List - English