nginx禁止访问某个文件和目录、只允许入口文件访问
#PHP-INFO-START PHP引用配置,可以注释或修改# include enable-php-71.conf;#PHP-INFO-ENDlocation ~ ^/(index\.php|CallbackDemo\.php|static/admin/ueditor/php/controller\.php)${try_files $uri 404;fastcgi_pass unix:/tmp/php-cgi-71.sock;fastcgi_index in…
2026/8/11 16:29:23