Route53 Domain unhealthy

0

My domain is regularly (2 days) changed to unhealthy (i have made the health check for my domain), when i see the domain dead, i need to reboot my lightsail server (wordpress).

Condition: this case is happened after i add SSL into my lightsail.

may i know how can i solve this issue?

asked 2 years ago254 views
4 Answers
0

A local, cloud (AWS WAF), or Wordpress firewall would be my first guess.
Does your lightsail instance have a public IP?
Is your DNS record an A record pointed directly to the IP address of the lightsail instance?
TLS/SSL uses port 443, not port 80. When you setup TLS/SSL, how did you redirect port 80 to port 443? What happens if you move the health check to TCP Port 443?

keebs
answered 2 years ago
  • Thanks for your reply, my lightsail instance have public IP, and the DNS record is directly pointed to the public address of lightsail instance. The SSL is using port 443, and is worked for https. but i haven't moved the health check to TCP port 443, i will try it. Actually, i just don't know why my domain name will regularly die for each 48 hrs, it is weird

  • health check to TCP Port 443 is unhealthy too. and the regularly fail is happening, so how can i do ?

0

A security group could also refuse a connection, but the connection wouldn't work intermittently.
The next time the health check is failed, can you view the webserver logs to see if the webserver is even receiving/responding to the health check request?
If nothing useful is there, try looking at the php/php-fpm logs.
The logs should provide some insight as to what is happening or not happening.

keebs
answered 2 years ago
  • thanks, i will take at look for next regular failed connection of my domain.

  • I can find the location of php-fpm and only saw the status.html. but how can i read the status.html online?

0

Please provide more info on how the health check is configured.
Ie: What is it configured to monitor? Protocol/port/a specific path/advanced configs?

keebs
answered 2 years ago
  • i am only monitored the end point (port 80) for my domain. Actually, when the status changed to unhealthy, i can't connect the domain name, but my server is normal. i can access my website via ip address. Therefore, i think the problem is the domain name, however, i don't know why? i need to restart the website's server to make the status to become normal.

0

Do you have a security plugin installed on Wordpress, such as Wordfence?
Check your logs. The health check might be triggering/upsetting your security firewall blocking those requests causing the health check to fail?

keebs
answered 2 years ago
  • i haven't install security plugin on wordpress, and the log of health check just showed that connection refused. what kind of program or function can cause the connection refused?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions