logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache mod_jk + virtualhost
Author
Qmpeltaty



Joined: 06 Feb 2008
Posts: 182
Location: Poland

PostPosted: Wed 10 Sep '08 10:17    Post subject: Apache mod_jk + virtualhost Reply with quote

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

PostPosted: Wed 10 Sep '08 22:33    Post subject: Reply with quote

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

PostPosted: Mon 15 Sep '08 11:59    Post subject: Reply with quote

ProxyPass is not mod_jk module command.
Back to top
krka01



Joined: 02 Jun 2006
Posts: 14
Location: Stockholm, Sweden

PostPosted: Thu 18 Sep '08 13:05    Post subject: Reply with quote

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


Reply to topic   Topic: Apache mod_jk + virtualhost View previous topic :: View next topic
Post new topic   Forum Index -> Apache