亚马逊ec2服务器

时间:2016-10-12 16:16:13

标签: php amazon-web-services nginx amazon-ec2 server

我的应用程序托管在amazon ec2 webserver中。 我在Ubuntu 14.04.5中使用NGINX服务器。

在某个时刻,我的应用程序的一页向我的JSON API发出请求。 在这一刻,页面有时会加载,有时也不会。我在错误日志中收到此消息(有一些安排):

2016/10/12 15:24:48 [error] 5504#5504: *162316 FastCGI sent in stderr: 

"PHP message: PHP Warning:

fopen(https://my.site.com/link/to/other/page):

failed to open stream:

Connection timed out in /srv/www/path/to/a/file.php on line 64" while reading response header from upstream,

client: xx.xxx.xxx.xxx,

server: my.server.name.com,

request: "GET / HTTP/1.1", 

upstream: "fastcgi://127.0.0.1:9000",

host: "my.server.name.com"

这是在我们在亚马逊重新启动服务器时开始的,然后我们必须更新OVH中的弹性IP号码作为我们的域名。

我尝试访问的页面(https://my.site.com/link/to/other/page)在我们直接访问时正常工作。

OBS:通常不是保持活动时间,因为页面响应非常快

有什么办法可以调试这个问题吗?最奇怪的是,有时是有效的,有时也不会。

0 个答案:

没有答案