Problems in Apache and Tomcat integration.

Discussion in 'Apache' started by mstar4u, Sep 5, 2008.

  1. #1
    Hi,

    We used tomcat 5.0 to run our sites www.domain1.com and www.domain2.com with a secured url. Then we integrate Apache_2.0.49 and Tomcat 5.0 by using the connector mod_jk2.

    Our workers2.properties file is:
    # Example socket channel, override port and host.

    [channel.socket:localhost:8009]
    port=8009
    host=127.0.0.1

    # define the worker
    [ajp13:localhost:8009]
    channel=channel.socket:localhost:8009

    [uri:/www.domain1.com/*]
    group=ajp13:localhost:8009
    [uri:/www.domain2.com/*]
    group=ajp13:localhost:8009


    and our DocumentRoot of httpd.conf file is
    DocumentRoot "C:/Apache2/htdocs"


    We need to run three applications under this integrated server.

    1) www.domain1.com, 2)www.domain2.com and one from the apache server, Apache2\htdocs\web.

    But it works only with secured urls(https://www.domain1.com), not with the url: http://www.domain1.com(automatic redirection is not working)

    Apache application "http://www.domain1.com/web" is working...

    Please help to solve this problem.....
     
    mstar4u, Sep 5, 2008 IP