This guide will show you how to whitelist your GoodAccess IP address in NGINX for a URL.

Whitelist an IP in NGINX for a URL

If you want to whitelist an IP for just one URL (e.g. /accounts/login) then add the allow directive below in the location block of that URL.

location /accounts/login {
   deny all;

Restart NGINX

Run the following command to check the syntax of your updated config file.

sudo nginx -t

If there are no errors, run the following command to restart the NGINX server.

sudo systemctl restart nginx

Last updated