Nginx: Fix the logic for restricted access to /authorize.php and /update.php