RE: Virtual Host, Locations and Mod_JK2

2004-04-20 Thread Angus Mezick
No idea, never tried it.
--Angus

 -Original Message-
 From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, April 20, 2004 1:11 AM
 To: Tomcat Users List
 Subject: Re: Virtual Host, Locations and Mod_JK2
 
 
 Angus Mezick wrote:
 
  
  Use the uri property in workers2.properties instead of 
 using JkUriSet.
  I do it that way and have no such problems:
  [uri:www.guidestar.org/*.jsp]
  group=lbWWW
 
 I know, I have this, too. But, still, why is Location 
 approach not working as 
 it should?
 
 Nix.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Virtual Host, Locations and Mod_JK2

2004-04-19 Thread Angus Mezick


Use the uri property in workers2.properties instead of using JkUriSet.
I do it that way and have no such problems:
[uri:www.guidestar.org/*.jsp]
group=lbWWW
[uri:www.SITENAME.org/*.adp]
group=lbWWW
[uri:www.SITENAME.org/*.inc]
group=lbWWW
[uri:www.SITENAME.org/servlet/*]
group=lbWWW
[uri:www.SITENAME.org/*.gs]
group=lbWWW
[uri:www.SITENAME.org/*.wga]
group=lbWWW
[uri:www.SITENAME.org/*.flexi]
group=lbWWW

[uri:de.SITENAME.org/*.jsp]
group=ajp13:web02DE:8019
[uri:de.SITENAME.org/*.inc]
group=ajp13:web02DE:8019
[uri:de.SITENAME.org/servlet/*]
group=ajp13:web02DE:8019


I used to have the following but then I decided to let apache serve the
static content.
[uri:www.SITENAME.org/*]
group=lbWWW


--Angus

 -Original Message-
 From: Alexander F. Hartner [mailto:[EMAIL PROTECTED] 
 Sent: Monday, April 19, 2004 1:21 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Virtual Host, Locations and Mod_JK2
 
 
 I host several websites on my apache2 (2.0.49) using virtual 
 hosts. One 
 of the hosts I would like to forward fully to a web application 
 deployed on tomat via Mod_JK. What I have done is the following:
 
 Installed the webapplication in tomcat's root / context
 
 Configured a worker in workers2.properties
 
 Configured a virutal host on apache2
 
 VirtualHost 196.22.194.227
  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot /home/www/solms.co.za/
  ServerName www.solms.co.za
  ServerAlias solms.co.za *.solms.co.za solmstraining.co.za 
 *.solmstraining.co.za
  ErrorLog logs/solms.co.za-error_log
  CustomLog logs/solms.co.za-access_log combined
  Location /
JkUriSet worker ajp13:localhost:28009
  /Location
 /VirtualHost
 
 Everything is working, except the Location directive spans 
 all my other 
 virtual hosts as well. A request to any of the virtual hosts is 
 redirected to /index.jsp, which I guess comes from my web 
 application's 
 deployment descriptor. Direct requests to 
 otherhost.com/index.html are 
 still processed by apache correctly, but general request to 
 otherhost.com are redirected to otherhost.com/index.jsp.
 
 Ugly solution:
 What I have done in the mean time is to either
 -create index.jsp files which are typically copies of the index.html
 -modify the webapplication to redirect to index.html
 
 I should not have to do this as the location should only work for the 
 virtual host in which it is configured.
 
 Any suggestions welcome
 
 Alex
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Virtual Host, Locations and Mod_JK2

2004-04-19 Thread Nikola Milutinovic
Angus Mezick wrote:

Use the uri property in workers2.properties instead of using JkUriSet.
I do it that way and have no such problems:
[uri:www.guidestar.org/*.jsp]
group=lbWWW
I know, I have this, too. But, still, why is Location approach not working as 
it should?

Nix.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Virtual Host, Locations and Mod_JK2

2004-04-13 Thread staf wagemakers
On Tue, Apr 13, 2004 at 10:23:13AM +0200, Alexander F. Hartner wrote:
 I host several websites on my apache2 (2.0.49) using virtual hosts. One 
 of the hosts I would like to forward fully to a web application 
 deployed on tomat via Mod_JK. What I have done is the following:
 
 Installed the webapplication in tomcat's root / context
 
 Configured a worker in workers2.properties
 
 Configured a virutal host on apache2
 
 VirtualHost 196.22.194.227
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /home/www/solms.co.za/
 ServerName www.solms.co.za
 ServerAlias solms.co.za *.solms.co.za solmstraining.co.za 
 *.solmstraining.co.za
 ErrorLog logs/solms.co.za-error_log
 CustomLog logs/solms.co.za-access_log combined
 Location /
   JkUriSet worker ajp13:localhost:28009
 /Location
 /VirtualHost
 
 Everything is working, except the Location directive spans all my other 
 virtual hosts as well. A request to any of the virtual hosts is 
 redirected to /index.jsp, which I guess comes from my web application's 
 deployment descriptor. Direct requests to otherhost.com/index.html are 
 still processed by apache correctly, but general request to 
 otherhost.com are redirected to otherhost.com/index.jsp.
 
 Ugly solution:
 What I have done in the mean time is to either
 -create index.jsp files which are typically copies of the index.html
 -modify the webapplication to redirect to index.html
 
 I should not have to do this as the location should only work for the 
 virtual host in which it is configured.


There is a bug in jk2
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22045

at the bottom of the bugreport there is also workaround 
(I didn't tried to implement it, I'm sticking to apache 1.3.xx and jk1)

-- 
Staf Wagemakers

email:  staf at patat.org
homepage:   http://staf.patat.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Virtual Host, Locations and Mod_JK2

2004-04-13 Thread Dean Searle
I have found that if you do the following it works for me:

Location /*.jsp
JkUriSet worker ajp13:localhost:28009
/Location

Hope that this helps, I have found that by doing this I can redirect any file type to 
be handled by Tomcat.

Dean


-Original Message-
From: Alexander F. Hartner [mailto:[EMAIL PROTECTED]
Sent: Tue 4/13/2004 4:23 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Virtual Host, Locations and Mod_JK2
 
I host several websites on my apache2 (2.0.49) using virtual hosts. One 
of the hosts I would like to forward fully to a web application 
deployed on tomat via Mod_JK. What I have done is the following:

Installed the webapplication in tomcat's root / context

Configured a worker in workers2.properties

Configured a virutal host on apache2

VirtualHost 196.22.194.227
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /home/www/solms.co.za/
 ServerName www.solms.co.za
 ServerAlias solms.co.za *.solms.co.za solmstraining.co.za 
*.solmstraining.co.za
 ErrorLog logs/solms.co.za-error_log
 CustomLog logs/solms.co.za-access_log combined
 Location /
   JkUriSet worker ajp13:localhost:28009
 /Location
/VirtualHost

Everything is working, except the Location directive spans all my other 
virtual hosts as well. A request to any of the virtual hosts is 
redirected to /index.jsp, which I guess comes from my web application's 
deployment descriptor. Direct requests to otherhost.com/index.html are 
still processed by apache correctly, but general request to 
otherhost.com are redirected to otherhost.com/index.jsp.

Ugly solution:
What I have done in the mean time is to either
-create index.jsp files which are typically copies of the index.html
-modify the webapplication to redirect to index.html

I should not have to do this as the location should only work for the 
virtual host in which it is configured.

Any suggestions welcome

Alex



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]