Re: variable map for fastcgi_pass

2017-09-25 Thread Kyle Sloan
Thanks for the response. Both the variables respond/work when they are not maps/variables and just set. I will try out the resolver and see if I can make any progress with it. Kyle Sloan DevOps Engineer | Interpersonal Frequency k...@ifsight.com https://ifsight.com > On Sep 25, 2017, at 4:13

Re: variable map for fastcgi_pass

2017-09-25 Thread Sergey Kandaurov
> On 25 Sep 2017, at 22:12, Kyle Sloan wrote: > > Hello, > > I am trying to use a MAP function based on HOSTNAMES to determine if this > domain should fastcgi_pass to a php5 or php7 container, but am having > problems. > > My map looks like > > map $host $php_proxy_container { > hostname

variable map for fastcgi_pass

2017-09-25 Thread Kyle Sloan
Hello, I am trying to use a MAP function based on HOSTNAMES to determine if this domain should fastcgi_pass to a php5 or php7 container, but am having problems. My map looks like map $host $php_proxy_container { hostnames; default "php5fpm:9000"; www.example.com