proxy_pass by the accept header?

Jonathan Leibiusky ionathan at
Thu Jan 19 14:44:18 UTC 2012

Hi all!
I want to proxy_pass depending on the value of the accept header. I have
lots of locations and I wanted to add in a single place a validation that
if accept header is 'text/html" it should proxy_pass to some specific
upstream. Else, just go ahead and try to match a location.

Is that possible?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list