html - webpage: how to automate detection if webpage returns error? -



html - webpage: how to automate detection if webpage returns error? -

i have webpage generated application server (glassfish) using jsp pages. if application server goes down, webpage returns error (can't find file).

is there way set things email when visits page , observes error? example, using .htaccess or else (simple)?

alternatively, there way can automate pinging webpage somehow every 30 minutes , send me email if webpage returns error?

or, anyway automate querying application server , notifying me when goes down?

what's specific error? imagine it's 404 can't find file, unless application throwing error.

if it's 404 in htaccess file add:

errordocument 404 http://www.domain.com/404page.html

create document called 404page.html , add together root directory via ftp. set meaningful user know there error. inform error create auto submit form:

auto submit form

then need simple php mailing script grab posted variables , mail service send them via e-mail.

if it's not 404 need figure out error beingness thrown , add together in error page. if apps server going down, highly uncertainty it's responsible throwing error.

html jsp servlets glassfish

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -