Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Apache mod_jk + virtualhost |
|
Author |
|
Qmpeltaty
Joined: 06 Feb 2008 Posts: 182 Location: Poland
|
Posted: Wed 10 Sep '08 10:17 Post subject: Apache mod_jk + virtualhost |
|
|
I'm looking for solution with such thing :
I have Apache fronted before Jboss Application server. The request between Apache and Jboss are based on mod_jk apache module. How to setup different virtual hosts for two Jboss aplications - it means that if someone will access to mydomain.com mod_jk will send this request to Jboss/App_1 and when someone will access to subdomain.mydomain.com mod_jk will send this request to Jboss/App_2 where App_1 and App_2 are applications name ? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 10 Sep '08 22:33 Post subject: |
|
|
Yopu can set up something like this in each vhost
Code: |
ProxyPass / http://servername:8080/Webapp1
ProxyPassReverse / http://servername:8080/Webapp1
|
|
|
Back to top |
|
Qmpeltaty
Joined: 06 Feb 2008 Posts: 182 Location: Poland
|
Posted: Mon 15 Sep '08 11:59 Post subject: |
|
|
ProxyPass is not mod_jk module command. |
|
Back to top |
|
krka01
Joined: 02 Jun 2006 Posts: 14 Location: Stockholm, Sweden
|
Posted: Thu 18 Sep '08 13:05 Post subject: |
|
|
Although i have not tried it,
I think you could define two diffrent workers in the workers.properties and if you have mod_jk version 1.2.6 or above you should be able to define JKMount inside each virual host pointing to the right worker.
Prior to version 1.2.6 JKMount where enheritied between the virtual host or from global server. See this thread for more information:
http://www.apachelounge.com/viewtopic.php?t=2229
Krister |
|
Back to top |
|
|
|
|
|
|