proxy_pass by the accept header?

Jonathan Leibiusky ionathan at gmail.com
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?

Thanks!

Jonathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120119/efe105b7/attachment.html>


More information about the nginx mailing list