Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

mod_jk question

Options
  • 09-09-2008 5:50pm
    #1
    Registered Users Posts: 378 ✭✭


    I've been using mod_jk for years with apache / tomcat and everything has been fine.

    A requirement has come up for me to have two applications on the same instance of JBoss using a root context. At the moment I have them accessible at...

    http://localhost:8080/app1
    http://localhost:8080/app2

    Obviously the request is passed from apache to tomcat so port 80 will be the same. Using virtual hosts I want

    http://domain1/ to be mapped onto domain1/app1
    http://domain2/ to be mapped onto domain2/app2

    Is this possible? JkMount only seems to accept configs like :

    JkMount /app1* worker1
    JkMount /app2* worker2

    Putting these in different VirtualHosts will allow me to solve the domain problem but is there a way to do something like...

    JkMount /* worker1

    Where worker1 will point this to the url with an extra param?

    I hope I've been clear....


Comments

  • Registered Users Posts: 378 ✭✭sicruise


    Instead I decided to dump mod_jk and use the following in my virtual host if anyone is interested.
    ProxyRequests Off
    
    ProxyPass        / http://domain1:8080/app1/
    ProxyPassReverse / http://domain1:8080/app1/
    

    Works for me great


Advertisement