# location { include /etc/nginx/snippets/offlineloc.conf; } # change the number after offline.check. to the ip number of the dest server on the vpn if (-f /var/www/html/offline.check.2) { return 503; } # proxy_pass http://10.8.0.2:1234/;