How to bypass nginx proxy a list of IPS

I have an Nginx config with the redirect to holding pages:

    location / {
        if ($setholdingpage = 'True') {
        rewrite (^.*$) /holding-page last;
           proxy_pass $backend;

Also, I have a list of IPs that should be whitelisted and not redirected to holding pages. How it's possible to do?

Read more here:

Content Attribution

This content was originally published by fireman777 at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: