How to make a server check it's own availability on the web?

Posted by Javawag on Server Fault See other posts from Server Fault or by Javawag
Published on 2011-02-20T15:18:49Z Indexed on 2011/02/20 15:26 UTC
Read the original article Hit count: 220

Filed under:
|
|
|

Hi all,

Just a quick question – my server is running at my house serving www pages at www.javawag.com. The problem is that my home internet connection keeps dropping randomly - for about 10 mins at a time. This is only an intermittent problem and will go away soon I hope. However, my server doesn't recover properly - when the connection comes back, I can still access it at 192.168.0.8 (locally) without any issue, but at www.javawag.com there's no reply!

(Just an aside - my home internet connection is dynamic ISP, the domain www.javawag.com points to javawag.dyndns.org which in turn points to my IP, updated every minute by ddclient on the server)

Is there some way for the server to check if it's accessible from the outside world periodically, and if not restart Apache/reboot? Oh, and if I reboot the problem fixes itself also!

  • Javawag

© Server Fault or respective owner

Related posts about server

Related posts about connection