Apache + Tomcat + mod_jk: Using IP and custom errors

Discussion in 'Apache' started by liorchaga, Oct 14, 2009.

  1. #1
    Hey,
    I've configured Apache2.2 to listen to port 80 and redirect request to Tomcat (port 8080).

    I have 2 problems:

    1. When I type in the URL: http://localhost, I'm redirected to tomcat management page. But if I type http://10.1.1.121 (using the server address instead of localhost) I get to the Apache "It works!" page.
      How can I overcome this?

    • When tomcat is down, I would like apache to present a custom html rather than the default 503 error message. I could not find a way doing so (tried using ErrorDocument with no success, maybe I just didn't put it in the right place or the custom html is not located where it should be).

    Thanks for the help,
    Lior
     
    liorchaga, Oct 14, 2009 IP