You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

FrontAccounting API模块跳转至登录页问题求助(Nginx环境)

FrontAccounting API模块在Nginx环境下返回HTML响应问题

我正在使用FrontAccounting,本地环境运行无异常。部署至Ubuntu Server后,浏览器端功能全部正常,但无法访问API模块(使用的是FrontAccountingSimpleAPI模块),该模块始终返回HTML响应。

我尝试开启调试日志排查问题但未成功,调试配置如下:

$error_logfile = __DIR__.'/tmp/errors.log';
$debug          = 1;    // show sql on database errors
$show_sql       = 1;    // show all sql queries in page footer for debugging purposes
$go_debug       = 2;    // set to 1 for basic debugging, or 2 to see also backtrace after failure.
$pdf_debug      = 0;    // display pdf source instead reports for debugging when $go_debug!=0

后续排查发现问题出在Nginx服务器:使用php -S内置服务器时API正常工作,但Nginx环境下仅浏览器端正常,API仍无法使用。


内容的提问来源于stack exchange,提问作者Grand Master

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.26 07:52:40