好湿?好紧?好多水好爽自慰,久久久噜久噜久久综合,成人做爰A片免费看黄冈,机机对机机30分钟无遮挡

主頁 > 網(wǎng)站建設 > 建站知識 > nginx禁止dedecms目錄php執(zhí)行權限的配置

nginx禁止dedecms目錄php執(zhí)行權限的配置

POST TIME:2020-04-10 19:45

為了dedecms的安全性,我們常常會禁止一些目錄中php的執(zhí)行權限,下面就是在nginx下禁止dedecms目錄php執(zhí)行權限的配置方法。

如下配置即可:

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;
}

說明:我的dedecms是安裝在mm目錄下的,如果你安裝在根目錄,要刪除mm

完成!



收縮
  • 微信客服
  • 微信二維碼
  • 電話咨詢

  • 400-1100-266