webman 1.4 Monitor异常

kevin

修改文件立即访问接口后

每次都出现,百度了没啥解决方案。。
process terminated with ERROR: E_ERROR "Uncaught RuntimeException: SplFileInfo::getMTime(): stat failed /process/Monitor.php:94

已经找到问题了,docker下的文件,不知道为什么,上一秒还正常,下一秒就No such file or directory,在想解决方案

793 1 0
1个回答

kevin

已解决此问题,此问题由nginx转发引致,停掉转发后正常

如果同时出现间隔一次请求正常,请求一次又失败400的错误,或请求中包含特殊字符都会导致错误,修改官方推荐的nginx配置为如下:

upstream webman {
server 127.0.0.1:8787;
keepalive 10240;
}

server {
server_name 站点域名;
listen 80;
access_log off;
root /your/webman/public;

location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Connection "";
if ($request_uri ~ ^/(.)$){
proxy_pass http://webman;
}
}
}

  • 暂无评论
年代过于久远,无法发表回答
🔝