location ~* (runtime|application)/{ return 403; } location ^~ /gCLpVWbork.php/ { if (!-e $request_filename){ rewrite ^\/gCLpVWbork\.php(.*)$ /gCLpVWbork.php?s=$1 last; break; } } location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php?s=$1 last; break; } }
PS:使用寶塔部署fastadmin,切記上來先去php設定裡,把putenv 從禁言函式列表中刪除,不然專案無法正常訪問