解决 PHPMaker 生成的PHP文件在Nginx下总是显示 404 Not Found的问题

需要要虚拟主机的配置文件里添加下面的项目

location / {
try_files $uri /index.php$is_args$args;
}

location /api/ {
try_files $uri /api/index.php$is_args$args;
}

官方文档参考

https://phpmaker.dev/docs/#/urlrewrite.html



发表评论

您的电子邮箱地址不会被公开。

− 6 = 2