Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

mod_jk question

  • 09-09-2008 05:50PM
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 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