HTTP 4xx Error in WordPress Deployed in Elastic Beanstalk

0

The health of the environment in Elastic Beanstalk went to severe with this error "100.0 % of the requests are erroring with HTTP 4xx. Insufficient request rate (6.0 requests/min) to determine application health."

I already checked the Inbound Rule and it accepts http and https protocols in the security group. Please help how to fix this error. Thanks!

profile picture
Vin
질문됨 10달 전331회 조회
1개 답변
1
수락된 답변

Hello.
It's a 4xx error, so I think you need to check the WordPress directories, etc. rather than looking at the security group settings.
Perhaps changing the ALB health check path to "/wordpress/", since it is set to "/", will solve the problem.
The other solution would be to change the Nginx document root.
The document root can be changed by following the steps in the following document.
Changing to "/wordpress" may solve the problem.
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_PHP.container.html#php-console

profile picture
전문가
답변함 10달 전
profile pictureAWS
전문가
검토됨 10달 전
  • Thanks for your help Riku! I inserted "/wordpress/" to the Path under Health Checks. The http 4xx error has gone and the remaining error is "Process default has been unhealthy for 9 hours (Target.ResponseCodeMismatch)." still "Severe" status.

  • Does restarting EC2, etc. not fix the problem? It may be fixed over time.

  • I restarted the environment. Only the 4xx error was removed and the error "Process default has been unhealthy for 9 hours (Target.ResponseCodeMismatch)." remained the same. I will check again tomorrow and try to resolve this, else I will post this in another thread to avoid confusion. I really appreciate your help Riku.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠