#限制phpMyAdmin访问的IP
location ~ ^/phpMyAdmin/ {
allow 127.0.0.1;
deny all;
}

Related Posts: Nginx 限制目录访问IP :