I currently have Apache and Tomcat running. I have a rewrite rule in Apache that rewrites all requests to point to tomcat:
RewriteRule ^//data/(.*) /cps/rde/xbcr/blah/$1 [PT]
RewriteRule ^//papp/(.*) /cps/rde/papp/$1 [PT]
RewriteRule ^/$ /cps/rde/xchg/blah/ [PT]
RewriteRule ^//$ /cps/rde/xchg/blah/ [PT]
RewriteRule ^//(.*) /cps/rde/xchg/blah/hs/$1 [PT]
If I stop tomcat I get this page:
"The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, firstname.lastname@example.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log."
I would like requests to the server to be redirected automatically to the Apache document root IF Tomcat is stopped.
Any ideas on how to accomplish this?