后台指定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;
	}
posted @ 2021-05-18 10:16  盘思动  阅读(147)  评论(0编辑  收藏  举报