Welcome! Log In Create A New Profile

Advanced

Conditional return of proxied responses

Neal Richter
September 01, 2010 07:42PM
Hi Nginx!

I'm using nginx-0.8.49 as a caching proxy and would like to
configure or implement the following:

Proxy incoming request to back-end servers
Check HTTP response headers for a unique string in either "Server" or
some "X-foo" lines.
IF check passes then return the response to the client
Else pass back an error message or HTTP 204.

Why?
Sometimes in systems like EC2 the backend at a given IP that used to
be yours may not be your box anymore (the IP might be reused).
Simple token-based security/sanity check that the response is coming
from your backend server.

If this can't be configured out-of-the-box.. the most logical way to
implement this is with a response filter and a nginx plug-in correct?

Thanks - Neal Richter

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Conditional return of proxied responses

Neal Richter September 01, 2010 07:42PM

Re: Conditional return of proxied responses

Nicholas Sherlock September 02, 2010 02:56AM

Conditional return of proxied responses

Neal Richter September 02, 2010 03:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 195
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready