Maison >développement back-end >tutoriel php >php接口直接访问正常,通过jquery的$.post调用就显示502
phpjquery
nginx的errorlog:
[error] 7657#0: *193 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 14.20.74.87, server: localhost, request: "POST /api/shop.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000",
网上的各种配置都配置了,都没有效果,不明白为什么用jquery访问跟页面直接访问会得到不同结果,我也没有设置什么特别的头信息呀- -。跪求大神答疑