Home >Backend Development >PHP Tutorial >php接口直接访问正常,通过jquery的$.post调用就显示502

php接口直接访问正常,通过jquery的$.post调用就显示502

WBOY
WBOYOriginal
2016-06-02 11:28:511845browse

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访问跟页面直接访问会得到不同结果,我也没有设置什么特别的头信息呀- -。跪求大神答疑

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn