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
相关产品推荐
相关产品推荐

