1 Answer
- Newest
- Most votes
- Most comments
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
Relevant content
- Accepted Answerasked a year ago
- asked 10 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 9 days ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 4 months ago
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.