≡ Menu

nginx: Send HTTP User Agent Requests To Specific Backend Server

Maybe it shout be the follow configuration?
## PROXY – Web
location / {
if ($http_user_agent ~ MSIE ) {
if ($http_user_agent ~ Mozilla ) {
proxy_pass http://mozillabackend;
proxy_pass http://myproxybackend;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;


  • Glenn June 21, 2011, 1:33 pm

    Quite an interesting way to go about this using this nginx approach. I wonder does the frontend server cache the requests PER upstream server or doesn’t it cache anything at all. Short but nice to get inspired.

  • Security: Are you a robot or human?

    Leave a Comment

    You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">