后台指定ip才可以访问
location ^~ /admin.php {
allow 218.93.***.**;
deny all;
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fastcgi.conf;
include pathinfo.conf;
}
多个ip访问;
location ^~ /admin.php {
allow 218.93.***.**;
allow 218.93.***.**;
deny all;
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fastcgi.conf;
include enable-php-pathinfo.conf;
}
相信坚持的力量,日复一日的习惯.