The location clause you suggested didn't cut out the index.php part, but a WordPress plugin called "nginx compatibility" did. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,226216,226220#msg-226220