Welcome! Log In Create A New Profile

Advanced

Proxying to 2 backends with a if...

jdm
January 18, 2011 06:34AM
Hi,

Not sure if the mailing list is more popular than the forums, so I ask here
to...
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
file?
You can see the trimed configuration here:
http://forum.nginx.org/read.php?11,166892
Basicaly I want to: "if (args or header) then pass to fcgi, else pass to http
backend"

Thanks,
JD




_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Proxying to 2 backends with a if...

jdm January 18, 2011 06:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 263
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready