首页 > 解决方案 > AWS 弹性 beanstalk 100.0 % 的请求使用 HTTP 4xx 出错

问题描述

我的 AWS Elastic Beanstalk 账户每天都出现以下错误:“环境健康状况已从正常转变为严重。100.0 % 的请求因 HTTP 4xx 出错”。

查看服务器日志时,它在访问几个奇怪的网页(不存在)后不断下降。部分日志:

/var/log/httpd/error_log-XXX
[XXX] [:error] [pid XXX] [client XXXX] script '/var/www/html/w.php' not found or unable to stat
[XXX] [:error] [pid XXX] [client XXX] script '/var/www/html/sheep.php' not found or unable to stat
[XXX] [:error] [pid XXX] [client XXX] script '/var/www/html/qaq.php' not found or unable to stat
[XXX] [:error] [pid XXX] [client XXX] script '/var/www/html/db.init.php' not found or unable to stat
[XXX] [:error] [pid XXX] [client XXX] script '/var/www/html/db_session.init.php' not found or unable to stat
[XXX] [:error] [pid XXX] [client XXX] script '/var/www/html/db__.init.php' not found or unable to stat
[XXX] [:error] [pid XXX] [client XXX] script '/var/www/html/wp-admins.php' not found or unable to stat
[XXX] [:error] [pid XXX] [client XXX] script '/var/www/html/m.php' not found or unable to stat
[XXX] [:error] [pid XXX] [XXX] script '/var/www/html/db_dataml.php' not found or unable to stat
...
[XXX] [XXX] [pid XXX] XXX: Graceful restart requested, doing restart

有谁知道发生了什么事?谢谢!

标签: apacheamazon-web-servicesserveramazon-elastic-beanstalk

解决方案


同样的事情也发生在我身上。AWS Elastic Beanstalk 正在检查根查询是否正常工作。这意味着根“/”处的请求必须以 HTTP 代码 200 进行响应。

你可能只需要解决这个问题。


推荐阅读