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: https://stackoverflow.com/questions/67001616/how-to-bypass-nginx-proxy-a-list-of-ips
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.