Nginx: allow access to admin ONLY if the request has a secret header. Do this without the if-evil case.
al-nginx at none.at
Mon May 28 16:28:35 UTC 2018
On 28/05/2018 07:16, Quintin Par wrote:
>My website’s being hit hard and I am trying to see if I can limit this at
>the load balancer (Nginx) level by cutting off requests that don’t have a
>I’ve seen some solutions that involve the if statement, notably
>Can someone help me with a solution that does NOT involve using an if
What's wrong with if in your use case.
The solution with the map looks okay to me.
>nginx mailing list
>nginx at nginx.org
More information about the nginx