apache - 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
有谁知道发生了什么事?谢谢!
解决方案
同样的事情也发生在我身上。AWS Elastic Beanstalk 正在检查根查询是否正常工作。这意味着根“/”处的请求必须以 HTTP 代码 200 进行响应。
你可能只需要解决这个问题。
推荐阅读
- html - 子 div 在 flex box 属性中存在高度问题
- packer - 使用 VMware 播放器作为主机构建映像时,Packer 准备错误
- acumatica - 如何在 PXSelector 的 Search<> 参数中包含 DAC 扩展未绑定字段?
- scala - 在 spark 1.5.1 中使用 rlike 和正则表达式列
- jquery - 如何根据活动下拉选择定义条件变量
- python - 如何模拟我正在测试的函数使用的函数的默认参数?
- ldap - wso2 中的安全数据服务创建大量 ldap 连接
- odoo-8 - 属性错误:“str”对象没有属性“dbname”
- angular - Angular - 创建按字母顺序排列的对象数组
- c# - 无法设置 StatusCode,因为响应已经开始