如下配置即可:
location ~ /mm/(data|uploads|templets)/*.(php)$ { deny all; } location ~ .php$ { try_files $uri /404.html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param script_FILENAME $document_root$fastcgi_script_name; includefastcgi_params; }
完成!
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)