Welcome! Log In Create A New Profile

Advanced

proxy_pass by the accept header?

Jonathan Leibiusky
January 19, 2012 09:46AM
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
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

proxy_pass by the accept header?

Jonathan Leibiusky January 19, 2012 09:46AM

Re: proxy_pass by the accept header?

António P. P. Almeida January 19, 2012 10:24AM

Re: proxy_pass by the accept header?

Jonathan Leibiusky January 19, 2012 10:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 89
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready