fastadmin 伪静态nginx 无法访问后端的情况
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 从禁言函数列表中删除,不然项目无法正常访问