I cannot use a variable for fastcgi_pass
directive as below
fastcgi_pass $image:9000;
I get the following error.
2020/07/07 01:39:08 [error] 27#27: *1 no resolver defined to resolve php, client: 192.168.48.1, server: , request: "GET /info.temp.php HTTP/1.1", host: "127.0.0.3"
The $image
variable has a valid value and if I hard code the value instead of the variable it will start to work.
Any workaround or fix please?
resolver 127.0.0.11;
inside the docker, see this answer.