title: apache tomcat 503 custom error page
body: <p>I have apache2 and tomcat6(not installed from apt repository, manually downloaded and installed) running on port 80 with mod_jk setup. The jsp servlet pages are accessed pointing the browser to <a href="http://myapp.mydomain.com/">http://myapp.mydomain.com/</a> (virtual hosting is done in tomcat(server.xml) and in apache). I'm trying to redirect tomcat's error page 503 to custom error page when tomcat is down(pkill -9 java  or /etc/init.d/tomcat stop) during deployment.</p>
  
  <p>My apache's Document Root is /var/www/ so I place below entry in apache2.conf file</p>
  
  <p><code>ErrorDocument 503 maintenance.html</code> and created a file maintenance.html under /var/www. When I tested stopping the tomcat and I got the page redirected to maintenance.html without having the url changed but the actual page is not displayed, instead the file name <code>maintenance.html</code> is displayed on the browser. Could any one help me properly configuring apache that redirects to proper maintenance.html page when tomcat is down?.</p>