proxy_pass $variable

Arkadiusz Patyk areq at
Mon Jul 21 01:09:17 MSD 2008


This works:
     set $back backend;
     if ($evil) { set $back evil;}
     if ($back = backend) {  proxy_pass  http://backend; }
     if ($back = evil)    {  proxy_pass  http://evil; }

this not:
      set $back http://backend;
      if ($evil) { set $back http://evil;}
      proxy_pass $back;

2008/07/20 23:02:55 [error] 13800#0: *7342 upstream sent no valid
HTTP/1.0 header while reading response header from upstream, client: ,
server: XXXX, request: "GET / HTTP/1.1", upstream:
"", host: "XXXX:81"

Is possible to use variable in proxy_pass  ?

Arkadiusz Patyk [areq<>pld-linux:org] []
[IRC:areq GG:1383 jid:arek<>patyk:net]

More information about the nginx mailing list