location ^~ /admin.php {
#allow 218.93.209.11;
#deny all;
fastcgi_pass unix:/tmp/php-cgi.sock;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
include pathinfo.conf;
}
原文:https://www.cnblogs.com/pansidong/p/14779802.html