also note the root setting: it's relative to request path, not whatever comes after that. So a request of http://phpmyadmin/phpmyadmin/index.php will make nginx try to find the file in $root/phpmyadmin/index.php where the $root is root path set in the location block.