Welcome! Log In Create A New Profile

Advanced

[1.4.x][Ubuntu] Limit access to upstream server based on request header

February 18, 2014 03:08PM
Hello,

I want something like limit_except functionality but based on custom request headers. Lets say I have a Request header X-Secured-Client set. In that case only I want to allow the request to my upstream server.

How can I achieve that without using "if" blocks? (I did search the mailing list with no success).

If the above requirement is possible, can I check if the header value is set to say 1 to allow the request to upstream server else send 444 back.

Thanks for any help,
Shreyas
Subject Author Posted

[1.4.x][Ubuntu] Limit access to upstream server based on request header

shreyas.purohit@hotmail.com February 18, 2014 03:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 145
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