Disable Access to a folder in Nginx

To disable access to folder /admin in Nginx, add following to server block of your web site.

To disable access to some common virtual control software, use