Proxying to 2 backends with a if...
jdmls at yahoo.com
Tue Jan 18 14:28:04 MSK 2011
Not sure if the mailing list is more popular than the forums, so I ask here
I setup two servers, each proxying to a different backend, one http and one
fcgi, and it mostly worked.
Now, I am trying to setup one server that would proxy to the two different
backends based on the presence of args or a header...
So I merged both configurations, but I have some issues like many configuration
parameters do not work inside a 'if'.
I moved most outside the if, but I am not sure of the effects.
And the headers don't seem to be proxied to the fcgi backend...
Could some knowledgeable people offer some advice on how to fix my configuration
You can see the trimed configuration here:
Basicaly I want to: "if (args or header) then pass to fcgi, else pass to http
More information about the nginx