Dynamic Proxy Passing

Ensiferous nginx-forum at nginx.us
Thu Mar 25 21:12:52 MSK 2010


Hello,

I have a situation where a server needs to proxy to a variable backend depending on the URI.

I use x-accel-redirect to a URI like /files/serverX/fileY;

I then need my server to proxy_pass to serverX.domain.com/fileY; and return this data to the user.

There will be multiple servers with this so something where I need to update the configuration when I add a new serverX would be somewhat undesirable.

Question is, what's the best way to go about this?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,67784,67784#msg-67784




More information about the nginx mailing list