4D蚂蚁-4d蚂蚁-www.4dmayi.com|4D蚂蚁博客

解决cloudreve伪静态规则设置

cloudreve是一款使用ThinkPHP + React + Redux + Material-UI构建的网盘系统,有免费和捐赠两个版本。

免费版:https://github.com/cloudreve/Cloudreve

这款网盘系统在搭建时需要解决伪静态的问题,解决办法如下,nginx伪静态添加如下:

location / {

if (!-e $request_filename) {

rewrite ^(.*)$ /index.php?s=/$1 last;

break;

}

}

退出移动版