curl url failed:由peer重置连接

时间:2016-07-29 15:14:09

标签: nginx

我有一个pac文件,它托管在我的nginx服务器中,假设它的网址是 http://xxx.xx/my.pac ,问题是当我$scope.addSale = function(codebare) { alert(codebare); var item = $scope.codebare; alert(item); $scope.orderedItemCnt = 1; var foodItem = { orderedItemCnt: 1, totalPrice: item.price, itemId: item.id, id: $scope.itemsCnt, item: item }; } 时,经常出错,细节如下:

wget http://xxx.xx/my.pac
     

解析xxx.xx ... 109.28.49.32   连接到xxx.xx | 109.28.49.32 |:80 ...已连接。   发送HTTP请求,等待响应... 200 OK   长度:59903(58K)[申请/八位字节流]   保存到:'my.pac'

     

my.pac 22%[==> ] 13.45K --.- KB / s in 0s

     

2016-07-29 22:45:15(85.9 MB / s) - 在字节13776/59903读取错误   (由对等方重置连接)。重试。

     

- 2016-07-29 22:45:16--(尝试:2)http://xxx.xx/my.pac连接到xxx.xx | 109.28.49.32 |:80 ...失败:连接由同行重置。   解析xxx.xx ... 109.28.49.32

以下是我的nginx配置:

--2016-07-29 22:45:14--  http://xxx.xx/my.pac

my.pac文件位于server { listen 80; server_name xxx.xx; access_log /home/tom/.log/access.log; error_log /home/tom/.log/error.log; location / { root /home/tom/www; index index.html; } }

的路径中

我认为这个问题可能是由我的nginx conf文件引起的,但我找不到谷歌的答案。 在此先感谢!

0 个答案:

没有答案
相关问题