Re: Problem VirtualHost WebApp Served on Two URLs

2005-08-22 Thread TroyGeek
No, I don't believe this is the problem. I've removed the ROOT web 
application and confugured apache forwarding to tomcat using the mod_jk 
connector to forward the root webapp to 'mysite'.
 

 On 8/20/05, Peter Rossbach [EMAIL PROTECTED] wrote: 
 
 You must rename your directory from mysite to ROOT.
 
 Context docBase=c:\sites\www.mysite.com\ROOT path= reloadable=true
 source=com.ibm.wtp.web.server:mysite/
 
 
 Peter
 
 TroyGeek schrieb:
 
 I have a problem with Tomcat Virtual Hosting. I have my virtual host 
 defined
 like so in server.xml (the source thing there is from Eclipse Webtools):
 
 Host name=www.mysite.com http://www.mysite.com http://www.mysite.com
 
 appBase=c:\sites\www.mysite.com\ unpackWARs=true autoDeploy=true
 xmlValidation=false xmlNamespaceAware=false
 
 Context docBase=c:\sites\www.mysite.com\mysite path= 
 reloadable=true
 source=com.ibm.wtp.web.server:mysite/
 
 /Host
 
 When I bring up the site in the browser I can access it at:
 http://www.mysite.com/
 and
 http://www.mysite.com/mysite/
  I don't want the site to be available at http://www.mysite.com/mysite/
  Do you know why it's serving the webapp at these two locations and not 
 just
 the first?
  thank you for your time,
  Troy Campano
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: Problem VirtualHost WebApp Served on Two URLs

2005-08-20 Thread Peter Rossbach

You must rename your directory from mysite to ROOT.

Context docBase=c:\sites\www.mysite.com\ROOT path= reloadable=true 
source=com.ibm.wtp.web.server:mysite/



Peter

TroyGeek schrieb:

I have a problem with Tomcat Virtual Hosting. I have my virtual host defined 
like so in server.xml (the source thing there is from Eclipse Webtools):


Host name=www.mysite.com http://www.mysite.com 
appBase=c:\sites\www.mysite.com\ unpackWARs=true autoDeploy=true 
xmlValidation=false xmlNamespaceAware=false


Context docBase=c:\sites\www.mysite.com\mysite path= reloadable=true 
source=com.ibm.wtp.web.server:mysite/


/Host

When I bring up the site in the browser I can access it at:
http://www.mysite.com/
and
http://www.mysite.com/mysite/
I don't want the site to be available at http://www.mysite.com/mysite/
Do you know why it's serving the webapp at these two locations and not just 
the first? 
thank you for your time, 
Troy Campano


 





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



Problem VirtualHost WebApp Served on Two URLs

2005-08-19 Thread TroyGeek
I have a problem with Tomcat Virtual Hosting. I have my virtual host defined 
like so in server.xml (the source thing there is from Eclipse Webtools):

Host name=www.mysite.com http://www.mysite.com 
appBase=c:\sites\www.mysite.com\ unpackWARs=true autoDeploy=true 
xmlValidation=false xmlNamespaceAware=false

Context docBase=c:\sites\www.mysite.com\mysite path= reloadable=true 
source=com.ibm.wtp.web.server:mysite/

/Host

When I bring up the site in the browser I can access it at:
http://www.mysite.com/
and
http://www.mysite.com/mysite/
 I don't want the site to be available at http://www.mysite.com/mysite/
 Do you know why it's serving the webapp at these two locations and not just 
the first? 
 thank you for your time, 
 Troy Campano


VirtualHost configuration SSL

2005-06-23 Thread Lars Nielsen Lind
Hi.

 

I want to configure the following:

 

 

www.domain.com http://www.domain.com/  port 80 - start page and unsecure
area

 

www.domain.com http://www.domain.com/  port 443 - redirects to
ssl.domain.com:443

 

ssl.domain.com port 80 redirects to ssl.domain.com port 443

 

ssl.domain.com port 443 - secure area

 

 

They all use make use of the same IP-address.

 

Is it possible and how do I do that?

 

 

Thanks moonie



Re: VirtualHost configuration SSL

2005-06-23 Thread Bruno Georges
Hi Lars

You need to use name-based Virtual hosting.
I assume you use apache in front of tomcat.
Docs are available on line at:
http://httpd.apache.org/docs-2.0/vhosts/

Best Regards
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000



  
  Lars Nielsen 
  
  LindTo:  'Tomcat Users List' 
tomcat-user@jakarta.apache.org
  [EMAIL PROTECTED] cc:

  ine.dk  Subject: VirtualHost 
configuration SSL   
  

  
  23.06.05 13:30   Distribute:  
  
  Please respond   Personal?   |---|
  
  to Tomcat Users | [ ] x |
  
  List|---|
  

  

  




Hi.



I want to configure the following:





www.domain.com http://www.domain.com/  port 80 - start page and unsecure
area



www.domain.com http://www.domain.com/  port 443 - redirects to
ssl.domain.com:443



ssl.domain.com port 80 redirects to ssl.domain.com port 443



ssl.domain.com port 443 - secure area





They all use make use of the same IP-address.



Is it possible and how do I do that?





Thanks moonie





*  
*  LEGAL DISCLAIMER
*  This message contains confidential information for
*  the exclusive use of the person mentioned above.
*


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

Re: VirtualHost configuration SSL

2005-06-23 Thread Bruno Georges
Lars

Correction:

Name-based virtual hosting cannot be used with SSL secure servers because
of the nature of the SSL protocol. 

You will need to use IP-Based virtual hosting when enabling SSL.

Hope this helps.

Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+
| |   Bruno Georges|
| |   [EMAIL PROTECTED]|
| |   encore.com  |
| ||
| |   23.06.05 13:38   |
| |   Please respond to|
| |   Tomcat Users|
| |   List|
| ||
|-+
  
--|
  | 
 |
  |To:  Tomcat Users List tomcat-user@jakarta.apache.org
 |
  |cc:  
 |
  |Subject: Re: VirtualHost configuration SSL   
 |
  | 
 |
  |Distribute:  
 |
  |Personal?   |---|
 |
  || [ ] x |
 |
  ||---|
 |
  | 
 |
  
--|




Hi Lars

You need to use name-based Virtual hosting.
I assume you use apache in front of tomcat.
Docs are available on line at:
http://httpd.apache.org/docs-2.0/vhosts/

Best Regards
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000



  Lars Nielsen

  LindTo:  'Tomcat Users
List' tomcat-user@jakarta.apache.org

  [EMAIL PROTECTED] cc:

  ine.dk  Subject: VirtualHost
configuration SSL


  23.06.05 13:30   Distribute:

  Please respond   Personal?   |---|

  to Tomcat Users | [ ] x |

  List|---|







Hi.



I want to configure the following:





www.domain.com http://www.domain.com/  port 80 - start page and unsecure
area



www.domain.com http://www.domain.com/  port 443 - redirects to
ssl.domain.com:443



ssl.domain.com port 80 redirects to ssl.domain.com port 443



ssl.domain.com port 443 - secure area





They all use make use of the same IP-address.



Is it possible and how do I do that?





Thanks moonie





*
*  LEGAL DISCLAIMER
*  This message contains confidential information for
*  the exclusive use of the person mentioned above.
*


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



*  
*  LEGAL DISCLAIMER
*  This message contains confidential information for
*  the exclusive use of the person mentioned above.
*


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

Re: VirtualHost configuration SSL

2005-06-23 Thread dan stephens
I found this URL. http://www.asiaosc.org/article_243.html . I'm testing this 
now.



From: Bruno Georges [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
CC: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: VirtualHost configuration SSL
Date: Thu, 23 Jun 2005 13:41:24 +0200

Lars

Correction:

Name-based virtual hosting cannot be used with SSL secure servers because
of the nature of the SSL protocol. 

You will need to use IP-Based virtual hosting when enabling SSL.

Hope this helps.

Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+
| |   Bruno Georges|
| |   [EMAIL PROTECTED]|
| |   encore.com  |
| ||
| |   23.06.05 13:38   |
| |   Please respond to|
| |   Tomcat Users|
| |   List|
| ||
|-+
  
--|
  |
  |
  |To:  Tomcat Users List tomcat-user@jakarta.apache.org   
  |
  |cc: 
  |
  |Subject: Re: VirtualHost configuration SSL  
  |
  |
  |
  |Distribute: 
  |
  |Personal?   |---|   
  |
  || [ ] x |   
  |
  ||---|   
  |
  |
  |
  
--|





Hi Lars

You need to use name-based Virtual hosting.
I assume you use apache in front of tomcat.
Docs are available on line at:
http://httpd.apache.org/docs-2.0/vhosts/

Best Regards
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000



  Lars Nielsen

  LindTo:  'Tomcat Users
List' tomcat-user@jakarta.apache.org

  [EMAIL PROTECTED] cc:

  ine.dk  Subject: VirtualHost
configuration SSL


  23.06.05 13:30   Distribute:

  Please respond   Personal?   |---|

  to Tomcat Users | [ ] x |

  List|---|







Hi.



I want to configure the following:





www.domain.com http://www.domain.com/  port 80 - start page and unsecure
area



www.domain.com http://www.domain.com/  port 443 - redirects to
ssl.domain.com:443



ssl.domain.com port 80 redirects to ssl.domain.com port 443



ssl.domain.com port 443 - secure area





They all use make use of the same IP-address.



Is it possible and how do I do that?





Thanks moonie





*
*  LEGAL DISCLAIMER
*  This message contains confidential information for
*  the exclusive use of the person mentioned above.
*


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



*
*  LEGAL DISCLAIMER
*  This message contains confidential information for
*  the exclusive use of the person mentioned above.
*


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


_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/



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



Re: virtualhost and deployment applications

2005-02-09 Thread Delian Krustev
Carlos Gabriel Arce wrote:

 Thanks for your answer. I'll show you my server.xml conf:

Define a separate workDir for each vhost. More info in

${CATALINA_HOME}/webapps/tomcat-docs/config/host.html


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



Re: virtualhost and deployment applications

2005-02-07 Thread Carlos Gabriel Arce
Thanks for your answer. I'll show you my server.xml conf:
...
  Host name=domain1.com debug=9 appbase=WWW/domain1.com 
unpackWARS=true
autoDeploy=true
xmlValidation=false
xmlNamespaceAware=false

Context path= docBase=WWW/domain1.com debug=9 
reloadable=true/
Context path=/manager docBase=WWW/domain1.com/manager 
privileged=true debug=2/
Logger className=org.apache.catalina.logger.FileLogger 
directory=logs prefix=domain1.com_log.
 suffix=.txt timestamp=true/
  /Host
  Host name=domain2.com debug=2 appbase=WWW/domain2.com 
unpackWARs=true autoDeploy=true xmlValidation=false 
xmlNamespaceAware=false
Context path= docBase=WWW/domain2.com debug=0 
reloadable=true/
Context path=/manager docBase=WWW/domain2.com/manager 
debug=0 privileged=true/
Logger className=org.apache.catalina.logger.FileLogger 
directory=logs prefix=domain2.com_log. suffix=.txt timestamp=true/
  /Host

...
my tomcat is installed in the dir /usr/local/jakarta_5. When I deploy a 
war using the manager web app : http://domain1.com/manager the war is 
copied in the dir /usr/local/jakarta_5 instead WWW/domain1.com, and 
therefore is deployed in the domain2.com too.



Atentamente:
Ing. Carlos Gabriel Arce
Administrador del Hosting
TELESAT S.A
Cisco CCNA 10677416
Pbx. 57-2 - 644 0400
Fax. 57-2 - 644 0507
Cali, Colombia
http://www.telesat.com.co

Quien no ha afrontado la adversidad
no conoce su propia fuerza.
Benjamin Jonson.




La información adjunta en este mensaje es de uso exclusivo de la/s 
persona(s) o entidad/es a la que está dirigida y puede incluir 
información confidencial, personal y/o material protegido legalmente. La 
recepción de este mensaje por cualquier otra persona distinta de los 
destinatarios a los que está dirigido, no implica renuncia alguna al 
privilegio o derecho de confidencialidad. Se prohíbe el análisis, la 
retransmisión, divulgación o cualquier otro uso, o acción relacionada 
con esta información que fuera llevada a cabo por personas distintas del 
destinatario al cual la información está dirigida. Si recibe esta 
información por error, comuníquese con el remitente y proceda a borrarla 
de inmediato de todos los equipos de cómputo donde pueda quedar 
almacenada. Telesat entiende que el destinatario de este  mensaje ha 
tomado todas las medidas técnicamente recomendables y apropiadas para 
evitar la contaminación por virus. Telesat S.A. no se hace responsable 
por la eventual transmisión de virus o programas dañinos por este medio, 
ni acepta responsabilidad alguna por eventuales daños o alteraciones 
derivados de la recepción o uso del presente mensaje. Las opiniones, 
conclusiones y otra información contenida en este correo no relacionadas 
con el negocio oficial de Telesat S.A. deben entenderse como personales 
y de ninguna manera son avaladas por la Compañía. Agradecemos su atención.

Mario Winterer escribió:
Hi!
I think, there's something wrong with your context-definition or 
server.xml. Make sure each of your hosts have a webapplication base 
directory for their own!!! Do not use one single webapps-directory for 
all of your hosts!

My directory structure looks as follows:
somewhere/Tomcat/hosts/host/web-application
Inside server.xml, where the hosts are defined, each host's 
appBase-attribute points to the correspoding host-directory.

Apart from that: If your tomcat's auto-deploy feature is activated, you 
can deploy a web-application by simply copying the war file into your 
webapps-directory (or any other directory that you specified in 
server.xml).

Best regards,
 Tex
Carlos Gabriel Arce wrote:
But when I deploy a local .war in the administration page 
www.domain1.com/manager/html

this war gets replicated in other virtualhosts.

Mario Winterer escribió:
Of course!
That's Tomcat's default behaviour - and in fact, it is difficult to 
make it behave different!
Have a look at server.xml of your tomcat's default installation (you 
need a host-element for each virtual host). More information can be 
found at 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/index.html.

Best regards,
 Tex
Carlos Gabriel Arce schrieb:
 Good Day
I have a question. Is possible deploy an application per 
virtualhost, where the deployed applications per virtualhost 
could'nt see them each other?

Thanks in advance.

-
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]

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


-
To unsubscribe, e

Re: virtualhost and deployment applications

2005-02-05 Thread Mario Winterer
Hi!
I think, there's something wrong with your context-definition or 
server.xml. Make sure each of your hosts have a webapplication base 
directory for their own!!! Do not use one single webapps-directory for 
all of your hosts!

My directory structure looks as follows:
somewhere/Tomcat/hosts/host/web-application
Inside server.xml, where the hosts are defined, each host's 
appBase-attribute points to the correspoding host-directory.

Apart from that: If your tomcat's auto-deploy feature is activated, you 
can deploy a web-application by simply copying the war file into your 
webapps-directory (or any other directory that you specified in server.xml).

Best regards,
 Tex
Carlos Gabriel Arce wrote:
But when I deploy a local .war in the administration page 
www.domain1.com/manager/html

this war gets replicated in other virtualhosts.

Mario Winterer escribió:
Of course!
That's Tomcat's default behaviour - and in fact, it is difficult to 
make it behave different!
Have a look at server.xml of your tomcat's default installation (you 
need a host-element for each virtual host). More information can be 
found at 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/index.html.

Best regards,
 Tex
Carlos Gabriel Arce schrieb:
 Good Day
I have a question. Is possible deploy an application per 
virtualhost, where the deployed applications per virtualhost 
could'nt see them each other?

Thanks in advance.

-
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]

-
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]


virtualhost and deployment applications

2005-02-04 Thread Carlos Gabriel Arce
 Good Day
I have a question. Is possible deploy an application per virtualhost,
where the deployed applications  could'nt see them each other?
Thanks in advance.

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


Re: virtualhost and deployment applications

2005-02-04 Thread Hari Mailvaganam
The VirtualHost binding can be conducted via Apache HTTP Server and
use mod_proxy to the appropriate URI running in the Tomcat.


On Fri, 04 Feb 2005 07:41:24 -0500, Carlos Gabriel Arce
[EMAIL PROTECTED] wrote:
   Good Day
 
 I have a question. Is possible deploy an application per virtualhost,
 where the deployed applications  could'nt see them each other?
 
 Thanks in advance.
 
 -
 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: virtualhost and deployment applications

2005-02-04 Thread Carlos Gabriel Arce
But when I deploy a local .war in the administration page 
www.domain1.com/manager/html

this war gets replicated in other virtualhosts.

Mario Winterer escribió:
Of course!
That's Tomcat's default behaviour - and in fact, it is difficult to make 
it behave different!
Have a look at server.xml of your tomcat's default installation (you 
need a host-element for each virtual host). More information can be 
found at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/index.html.

Best regards,
 Tex
Carlos Gabriel Arce schrieb:
 Good Day
I have a question. Is possible deploy an application per virtualhost, 
where the deployed applications per virtualhost could'nt see them each 
other?

Thanks in advance.

-
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]

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


virtualhost and deployment applications

2005-02-03 Thread Carlos Gabriel Arce
 Good Day
I have a question. Is possible deploy an application per virtualhost, 
where the deployed applications per virtualhost could'nt see them each 
other?

Thanks in advance.

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


Re: virtualhost and deployment applications

2005-02-03 Thread Mario Winterer
Of course!
That's Tomcat's default behaviour - and in fact, it is difficult to make 
it behave different!
Have a look at server.xml of your tomcat's default installation (you 
need a host-element for each virtual host). More information can be 
found at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/index.html.

Best regards,
 Tex
Carlos Gabriel Arce schrieb:
 Good Day
I have a question. Is possible deploy an application per virtualhost, 
where the deployed applications per virtualhost could'nt see them each 
other?

Thanks in advance.

-
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]


virtualhost and deployment applications

2005-02-01 Thread Carlos Gabriel Arce
 Good Day
Please help me with a question. I have a Tomcat 5 server running with 
jdk in a linux box (red hat 9). This server have many virtualhosts 
configured by host directive. I have a trouble when a hosting deploys an 
application because the war gets deployed in the catalina home. The 
problem is this application is visible for the rest of virtualhosts. Is 
there any form, using one tomcat instance ( one JVM) where the hosting 
can deploy your applications without disturb the rest of hostings?
The JDK version is j2sdk1.4.0_01
The tomcat server version is jakarta-tomcat-5.0.19

This is the configuration of my server.xml:
?xml version=1.0?
Server port=8005 shutdown=SHUTDOWN debug=0
  Listener 
className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/
  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener 
debug=0/
!-- Global JNDI resources --
  GlobalNamingResources
!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/
!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container 
type=org.apache.catalina.UserDatabase description=User database that 
can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
  /GlobalNamingResources
!-- Define the Tomcat Stand-Alone Service --
  Service name=Catalina

!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
Connector port=8083 maxThreads=150 minSpareThreads=25 
maxSpareThreads=75 enableLookups=false redirectPort=8443 
acceptCount=100 debug=0 connectionTimeout=6 
disableUploadTimeout=true/
Engine name=Catalina defaultHost=localhost debug=9

!-- Define the default virtual host --
  Host name=localhost debug=0 appbase=webapps unpackWARs=true
 /Context
Context path= docBase=ROOT debug=0 reloadable=false/
Context path=/manager 
docBase=/usr/local/jakarta/webapps/manager debug=0 privileged=true/

Logger className=org.apache.catalina.logger.FileLogger 
directory=logs prefix=localhost_log. suffix=.txt timestamp=true/
  /Host
!-- CONFIGURACION DE LOS VIRTUALHOSTS --
!-- Hosting virtual de domain1.com --
  Host name=domain1.com debug=9 appbase=/WWW/domain1.com 
unpackWARs=true 
Context path= docBase=/WWW/domain1.com debug=9 
reloadable=true/
Context path=/manager 
docBase=/usr/local/jakarta_5/server/webapps/manager debug=9 
privileged=true/
Logger className=org.apache.catalina.logger.FileLogger 
verbosity=4 directory=logs prefix=domain.com. suffix=.txt 
timestamp=true/
Valve className=org.apache.catalina.valves.AccessLogValve
   prefix=domain1.com_access-log.
   suffix=.txt
   pattern=common
   directory=logs /
  /Host
!-- Fin hosting virtual --
!-- Hosting virtual de hosting_tomcat.telesat.com.co--
  Host name=domain2.com debug=9 appbase=/WWW/domain2.com 
unpackWARs=true autoDeploy=true xmlValidation=false 
xmlNamespaceAware=false
Context path= docBase=/WWW/domain2.com debug=9 
reloadable=true/
Context path=/manager 
docBase=/usr/local/jakarta_5/server/webapps/manager debug=9 
privileged=true/
Logger className=org.apache.catalina.logger.FileLogger 
directory=logs prefix=domain2.com_log. suffix=.txt timestamp=true/
  /Host
!-- Fin hosting virtual --
/Engine
  /Service
/Server

Thanks in advance.
--
Atentamente:
Ing. Carlos Gabriel Arce
Administrador del Hosting
TELESAT S.A
Cisco CCNA 10677416
Pbx. 57-2 - 644 0400
Fax. 57-2 - 644 0507
Cali, Colombia
http://www.telesat.com.co

Quien no ha afrontado la adversidad
no conoce su propia fuerza.
Benjamin Jonson.




La información adjunta en este mensaje es de uso exclusivo de la/s 
persona(s) o entidad/es a la que está dirigida y puede incluir 
información confidencial, personal y/o material protegido legalmente. La 
recepción de este mensaje por cualquier otra persona distinta de los 
destinatarios a los que está dirigido, no implica renuncia alguna al 
privilegio o derecho de confidencialidad. Se prohíbe el análisis, la 
retransmisión, divulgación o cualquier otro uso, o acción relacionada 
con esta información que fuera llevada a cabo por personas distintas del 
destinatario al cual la información está dirigida. Si recibe esta 
información por error, comuníquese con el remitente y proceda a borrarla 
de inmediato de todos los equipos de cómputo donde pueda quedar 
almacenada. Telesat entiende que el destinatario de este  mensaje ha 
tomado todas las medidas técnicamente recomendables y apropiadas para 
evitar la contaminación por virus. Telesat S.A. no se hace 

RE: RES: Apache and Tomcat VirtualHost Config Problem

2004-12-30 Thread Aphra Behn
Does anyone know how to do what he is suggesting?  What lines should be 
inserted or edited in these files to differentiate the requests for jsp for 
each virtual host?  Or does anyone know any better documentation that 
explains how to do this?

From: Roberto Rios [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: 'Aphra Behn' [EMAIL PROTECTED]
Subject: RES: Apache and Tomcat VirtualHost Config Problem
Date: Thu, 30 Dec 2004 10:59:16 -0200
Hi,
Looking into your apache config, every jsp request that arrives to it
will be forwarded to ajp13:localhost:8009.
In your tomcat config you are telling to tomcat that every request that
arrives for www.home.net or localhost or www or 10.0.0.10 will be
handled by the application in /opt/jakarta-tomcat-5.0.28/webapps/home.
So, the application in /opt/jakarta-tomcat-5.0.28/webapps/sample will
NEVER be reached...
I'm not an expert, but I think that the only way to do what you want, is
doing some kind of differentiation between the requests for home and
sample.
Doing this, apache will be able to know to each tomcat host forward the
requests.
Bob
-Mensagem original-
De: Aphra Behn [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 29 de dezembro de 2004 23:55
Para: tomcat-user@jakarta.apache.org
Assunto: Apache and Tomcat VirtualHost Config Problem
Hi,
I am currently using Apache httpd 2.0.52, Tomcat 5.0.28 and mod_jk2
configured with workers2.properties and so that tomcat can listen to
apache requests.  I want Apache httpd to serve static files and Tomcat
to serve dynamic files (ex. jsp's).
This all works fine if I have all dynamic files located on the url as
www.mysite.com/home/file.jsp
However, I cannot seem to get the dynamic files to work properly if I
want them to be at the same location on the url as the static files so
that www.mysite.com/file.jsp (served by Tomcat as requested by Apache
httpd) and www.mysite.com/index.htm (served by Apache httpd) coexist
without any problems.
I did come up with a config that works partially for jsps at
www.mysite.com/file.jsp but there are some problems.  This is the main
problem:
Eventhough I am able to access all the jsp page inside
CATALINA_HOME/webapp/home, I am no longer able to access any jsp page
inside other directory such as CATALINA_HOME/webapp/sample directory.
I have included all relevant config settings below this paragraph.
What can I do diffrently so that Apache can make a direct request to
both CATALINA_HOME/webapp/home and CATALINA_HOME/webapp/sample instead
of just one?  It seems to me that with my original setting (above
mentioned as www.mysite.com/home/file.jsp), requests from Apache will
start from CATALINA_HOME/webapp and start going through different
directory and display it through the url each time it enter a
subdirectory.  However, with my current setting, instead of starting
at CATALINA_HOME/webapp, I just start at CATALINA_HOME/webapp/home, so
eventhough I make a request from www.mysite.com, home does not show
up anymore, but that also makes it impossible to access files from a
directory such as CATALINA_HOME/webapp/sample.  What kind of
configuration do I need to make Apache access a jsp page from Tomcat
without showing up a long url path but instead just something like
www.mysite.com/file.jsp no matter which folder the jsp page is located
inside tomcat?
Here are the relevant config lines:

---
1)Inside server.xml, I enter the following:
  Host name=www.home.net debug=0
  appBase=/opt/jakarta-tomcat-5.0.28/webapps/home
   unpackWARs=true autoDeploy=true
  Aliaslocalhost/Alias
  Aliaswww/Alias
  Alias10.0.0.10/Alias
  Context path= docBase= debug=1/
  Valve
className=org.apache.catalina.valves.AccessLogValve
   directory=logs  prefix=home_access_log. suffix=.txt
   pattern=common resolveHosts=false/
  /Host
  Host name=www.root.net debug=0
  appBase=/opt/jakarta-tomcat-5.0.28/webapps/sample
  unpackWARs=true autoDeploy=true
  Context path= docBase= debug=1/
  Valve
className=org.apache.catalina.valves.AccessLogValve
   directory=logs  prefix=cust2_log. suffix=.txt
   pattern=common resolveHosts=false/
  /Host
2) Inside worker2.properties, I include the following:
  uri:www.home.net/*.jsp]
  worker=ajp13:localhost:8009
  [uri:www.sample.net/*.jsp]
  worker=ajp13:localhost:8009
3)  Inside httpd.conf, I include the following:
VirtualHost 10.0.0.10:80
  DocumentRoot /usr/local/httpd-2.0.52/htdocs/www.mysite.com
  ServerName www.mysite.com
  Location /*.jsp
  JkUriSet worker ajp13:localhost:8009
  /Location
/VirtualHost

---
If anybody knows of a great source

Apache and Tomcat VirtualHost Config Problem

2004-12-29 Thread Aphra Behn
Hi,
I am currently using Apache httpd 2.0.52, Tomcat 5.0.28 and mod_jk2
configured with workers2.properties and so that tomcat can listen to
apache requests.  I want Apache httpd to serve static files and Tomcat
to serve dynamic files (ex. jsp's).
This all works fine if I have all dynamic files located on the url as
www.mysite.com/home/file.jsp
However, I cannot seem to get the dynamic files to work properly if I
want them to be at the same location on the url as the static files so
that www.mysite.com/file.jsp (served by Tomcat as requested by Apache
httpd) and www.mysite.com/index.htm (served by Apache httpd) coexist
without any problems.
I did come up with a config that works partially for jsps at
www.mysite.com/file.jsp but there are some problems.  This is the main
problem:
Eventhough I am able to access all the jsp page inside
CATALINA_HOME/webapp/home, I am no longer able to access any jsp page
inside other directory such as CATALINA_HOME/webapp/sample directory.
I have included all relevant config settings below this paragraph.
What can I do diffrently so that Apache can make a direct request to
both CATALINA_HOME/webapp/home and CATALINA_HOME/webapp/sample instead
of just one?  It seems to me that with my original setting (above
mentioned as www.mysite.com/home/file.jsp), requests from Apache will
start from CATALINA_HOME/webapp and start going through different
directory and display it through the url each time it enter a
subdirectory.  However, with my current setting, instead of starting
at CATALINA_HOME/webapp, I just start at CATALINA_HOME/webapp/home, so
eventhough I make a request from www.mysite.com, home does not show
up anymore, but that also makes it impossible to access files from a
directory such as CATALINA_HOME/webapp/sample.  What kind of
configuration do I need to make Apache access a jsp page from Tomcat
without showing up a long url path but instead just something like
www.mysite.com/file.jsp no matter which folder the jsp page is located
inside tomcat?
Here are the relevant config lines:
---
1)Inside server.xml, I enter the following:
 Host name=www.home.net debug=0
 appBase=/opt/jakarta-tomcat-5.0.28/webapps/home
  unpackWARs=true autoDeploy=true
 Aliaslocalhost/Alias
 Aliaswww/Alias
 Alias10.0.0.10/Alias
 Context path= docBase= debug=1/
 Valve className=org.apache.catalina.valves.AccessLogValve
  directory=logs  prefix=home_access_log. suffix=.txt
  pattern=common resolveHosts=false/
 /Host
 Host name=www.root.net debug=0
 appBase=/opt/jakarta-tomcat-5.0.28/webapps/sample
 unpackWARs=true autoDeploy=true
 Context path= docBase= debug=1/
 Valve className=org.apache.catalina.valves.AccessLogValve
  directory=logs  prefix=cust2_log. suffix=.txt
  pattern=common resolveHosts=false/
 /Host
2) Inside worker2.properties, I include the following:
 uri:www.home.net/*.jsp]
 worker=ajp13:localhost:8009
 [uri:www.sample.net/*.jsp]
 worker=ajp13:localhost:8009
3)  Inside httpd.conf, I include the following:
VirtualHost 10.0.0.10:80
 DocumentRoot /usr/local/httpd-2.0.52/htdocs/www.mysite.com
 ServerName www.mysite.com
 Location /*.jsp
 JkUriSet worker ajp13:localhost:8009
 /Location
/VirtualHost
---
If anybody knows of a great source of documentation on this I would
like to know.  I have searched online and read through a lot of
documentation such as  Apache 2.0.43 - Tomcat 4.1.12 - jk2 - virtual
host HOWTO at 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/printer/vhosthowto.html,
document about mod_jk2 at http://rimuhosting.com/mod_jk2.jsp  and at
http://www.pixelfreak.net/howto/apache2_jk2_tomcat/socket.html,
document about server.xml at
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html,
document about virtual host  at
http://httpd.apache.org/docs-2.0/mod/core.html#virtualhost .

Thanks in advance for your help!
_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/

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


VirtualHost problem

2004-10-14 Thread Jason Cook

Hi, everybody!

I'm brand new to Tomcat, and I'm having problems making a customer's
site accessible on a new Tomcat 5.0.27 installation.

For the purposes of discussion, the customer's virtualhost name is
secure.customername.com. The customer's website is located in
/home/www/customername.com/secure, and the directory contains what I
think to be a valid WEB-INF file structure, with the servlet jar in
/lib, and a web.xml.

Apache 1.3 is being used to serve the site, with mod_jk being used to
pass the servlet requests on to Tomcat. My Apache virtualhost directive
contains:

JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

And I have the following Host directive in my server.xml:

Host name=secure.customername.com
appBase=/home/www/customername.com/secure
Context path= docBase=/home/www/customername.com/secure
debug=0 reloadable=true /
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=secure.customername.com_log.
suffix=.txt
timestamp=true verbosity=4/
/Host

Attempts to access the servlet named 'porder' at
http://secure.customersite.com/servlet/porder return a HTTP Status 404 -
/servlet/porder error from Tomcat. Additionally, the log I'm trying to
configure above isn't even showing up.

What am I missing here?

Thanks in advance,
Jason L. Cook







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



Re: VirtualHost problem

2004-10-14 Thread Ben Souther
A few things:

1. It's helpful to try connecting directly to Tomcat before dealing with
the connectors. 

2. The invoker servlet is not active by default so you will need to
either activate it (not recommended) or map the servlet in your web.xml
file. This also means that you can pull the servlet part from your
URL.

3. I believe packages are now required.  




On Thu, 2004-10-14 at 19:29, Jason Cook wrote:
 Hi, everybody!
 
 I'm brand new to Tomcat, and I'm having problems making a customer's
 site accessible on a new Tomcat 5.0.27 installation.
 
 For the purposes of discussion, the customer's virtualhost name is
 secure.customername.com. The customer's website is located in
 /home/www/customername.com/secure, and the directory contains what I
 think to be a valid WEB-INF file structure, with the servlet jar in
 /lib, and a web.xml.
 
 Apache 1.3 is being used to serve the site, with mod_jk being used to
 pass the servlet requests on to Tomcat. My Apache virtualhost directive
 contains:
 
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13
 
 And I have the following Host directive in my server.xml:
 
 Host name=secure.customername.com
 appBase=/home/www/customername.com/secure
   Context path= docBase=/home/www/customername.com/secure
 debug=0 reloadable=true /
   Logger className=org.apache.catalina.logger.FileLogger
   directory=logs prefix=secure.customername.com_log.
 suffix=.txt
   timestamp=true verbosity=4/
 /Host
 
 Attempts to access the servlet named 'porder' at
 http://secure.customersite.com/servlet/porder return a HTTP Status 404 -
 /servlet/porder error from Tomcat. Additionally, the log I'm trying to
 configure above isn't even showing up.
 
 What am I missing here?
 
 Thanks in advance,
 Jason L. Cook
 
 
 
 
 
 
 
 -
 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: SV: Tomcat virtualhost bug?

2004-07-22 Thread Stephen Souness
Would it work if you just had separate absolute paths for each host appBase?
I'm seeing a similar issue on my development system and need to come up 
with something thast will be suitable for deploying to live systems - 
while preferably allowing for some configuration changes without having 
to bring the whole Tomcat down (which is more related to the discussion 
about whether and how the context.xml file can work for Tomcat apps 
http://www.simongbrown.com/blog/2003/04/28/1051559432000.html).

--
Stephen

Trond Hersløv wrote:
Thanks QM,
funny as it sounds, but nothing works and I'm happy.
No I must just deploy my apps manually. GREAT!
I'll drink a cold norwegian beer now. - haven't slept since saturday.
Thanks again.

-Opprinnelig melding-
Fra: QM [mailto:[EMAIL PROTECTED]
Sendt: Tuesday, May 25, 2004 19:37
Til: Tomcat Users List
Emne: Re: SV: SV: Tomcat virtualhost bug?
On Tue, May 25, 2004 at 07:25:14PM +0200, Trond Hersl?v wrote:
: You say disable deployOnStartup. Did you mean autoDeploy?
Not at all -- I most certainly meant deployOnStartup.
Please search the online Tomcat docs for this term, it is explained in
detail.
: What is the point of setting Host:webapps, Context:docBase and
Context:path
: when all three virtualHost
: always take every application it finds under webapps?
See above ref to deployOnStartup.  =)
-QM

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


dbcp pool global for only one virtualhost???

2004-07-13 Thread Emerson Cargnin
Is there a way to set a global pool only accessible for a given virtualhost?
--
Emerson Cargnin
Analista de Sistemas - Gerente Regional - Tubarão
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


common lib for each virtualhost?

2004-07-09 Thread Emerson Cargnin
Is there a way to set a diferent common/lib to each virtualhost?
thanks
--
Emerson Cargnin
Analista de Sistemas - Gerente Regional - Tubarão
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat virtualhost bug?

2004-05-25 Thread QM
On Tue, May 25, 2004 at 07:16:29AM +0200, Trond Hersl?v wrote:
: I thought everything was fine, BUT then I realized that I could access app2
: like this: http://test1.athome.no/test2 http://test1.athome.no/test2 .
: What am I doing wrong?

Perhaps autodeploy is enabled?

If not, read on:


: Host name=test1.athome.no . appBasewebapps.
: .
: .
: Context path=  docBase=test1 .
: /Host

-but what, specifically, is the .?
That's the best part!  =)

Seriously, please post the entire server.xml when possible.
That makes it easier for people to help you, should you have a
server.xml problem.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



SV: Tomcat virtualhost bug?

2004-05-25 Thread Trond Hersløv
Sorry about that. I'm a freshman and just tried to keep it short and simple
(as I thought I was supposed to).
Anyway - my server.xml:
Have no idea what those listeners and Global naming resourses are doing, but
I'll deal with it later ( I hope)
Turning autodeploy off didn't help :-(

Thanks for helping me out.

Server port=8005 shutdown=SHUTDOWN debug=0
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/
  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
  /GlobalNamingResources
  Service name=Catalina
Connector port=8009 
   enableLookups=false redirectPort=8443 debug=0
   protocol=AJP/1.3 /
Engine name=Catalina defaultHost=uuu.platin.no debug=0
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true/
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 debug=0 resourceName=UserDatabase/

  Host name=uuu.platin.no debug=0 appBase=webapps
   unpackWARs=true autoDeploy=false
   xmlValidation=false xmlNamespaceAware=false
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=uuu suffix=.txt
timestamp=true/
 Context path= docBase=en debug=1 override=true/   
  /Host

  Host name=www.platin.no debug=0 appBase=webapps
   unpackWARs=true autoDeploy=false
   xmlValidation=false xmlNamespaceAware=false
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=www suffix=.txt
timestamp=true/
 Context path= docBase=tre debug=1 override=true/   
  /Host

  Host name=vvv.platin.no debug=0 appBase=webapps
   unpackWARs=true autoDeploy=false
   xmlValidation=false xmlNamespaceAware=false
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=vvv suffix=.txt
timestamp=true/
 Context path= docBase=to debug=1 override=true/   
  /Host
/Engine
  /Service
/Server


Trond

-Opprinnelig melding-
Fra: QM [mailto:[EMAIL PROTECTED]
Sendt: Tuesday, May 25, 2004 15:12
Til: Tomcat Users List
Emne: Re: Tomcat virtualhost bug?


On Tue, May 25, 2004 at 07:16:29AM +0200, Trond Hersl?v wrote:
: I thought everything was fine, BUT then I realized that I could access
app2
: like this: http://test1.athome.no/test2 http://test1.athome.no/test2 .
: What am I doing wrong?

Perhaps autodeploy is enabled?

If not, read on:


: Host name=test1.athome.no . appBasewebapps.
: .
: .
: Context path=  docBase=test1 .
: /Host

-but what, specifically, is the .?
That's the best part!  =)

Seriously, please post the entire server.xml when possible.
That makes it easier for people to help you, should you have a
server.xml problem.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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


**
This email message has been swept by
MIMEsweeper for the presence of computer viruses.
**


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



Re: SV: Tomcat virtualhost bug?

2004-05-25 Thread QM
On Tue, May 25, 2004 at 05:48:52PM +0200, Trond Hersl?v wrote:
: Sorry about that. I'm a freshman and just tried to keep it short and simple
: (as I thought I was supposed to).

It helps to follow the list for a day or two before posting. =)

The first thing that strikes me: disable deployOnStartup in the Host
element, otherwise each virtual host will deploy any webapp under the
appBase dir.

Check the Tomcat logs to see whether each of your webapps is being
deployed 3 times (1 for each vhost).

If that doesn't help, I'll look at your server.xml again... but nothing
leaped out at me the first time.


: Anyway - my server.xml:
: Have no idea what those listeners and Global naming resourses are doing, but
: I'll deal with it later ( I hope)

All of that is described in the Tomcat docs.  Please review those.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



SV: SV: Tomcat virtualhost bug?

2004-05-25 Thread Trond Hersløv
Getting closer.
I removed all logs, and all the servlets from (cd work/Catalina/;rm -rf *).
Startet up tomcat, and as you
said, all the web applications were generated under all three hosts (is that
deploying?).
But I dont understand why that happens. I have the Host attribute
autoDeploy=false.
You say disable deployOnStartup. Did you mean autoDeploy?

What else can causee those apps to be precompiled as tomcat is starting up?

What is the point of setting Host:webapps, Context:docBase and Context:path
when all three virtualHost
always take every application it finds under webapps?

I do really appreciate the way you are helping me out here.

Trond (


-Opprinnelig melding-
Fra: QM [mailto:[EMAIL PROTECTED]
Sendt: Tuesday, May 25, 2004 18:42
Til: Tomcat Users List
Emne: Re: SV: Tomcat virtualhost bug?


On Tue, May 25, 2004 at 05:48:52PM +0200, Trond Hersl?v wrote:
: Sorry about that. I'm a freshman and just tried to keep it short and
simple
: (as I thought I was supposed to).

It helps to follow the list for a day or two before posting. =)

The first thing that strikes me: disable deployOnStartup in the Host
element, otherwise each virtual host will deploy any webapp under the
appBase dir.

Check the Tomcat logs to see whether each of your webapps is being
deployed 3 times (1 for each vhost).

If that doesn't help, I'll look at your server.xml again... but nothing
leaped out at me the first time.


: Anyway - my server.xml:
: Have no idea what those listeners and Global naming resourses are doing,
but
: I'll deal with it later ( I hope)

All of that is described in the Tomcat docs.  Please review those.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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


**
This email message has been swept by
MIMEsweeper for the presence of computer viruses.
**


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



Re: SV: SV: Tomcat virtualhost bug?

2004-05-25 Thread QM
On Tue, May 25, 2004 at 07:25:14PM +0200, Trond Hersl?v wrote:
: You say disable deployOnStartup. Did you mean autoDeploy?

Not at all -- I most certainly meant deployOnStartup.
Please search the online Tomcat docs for this term, it is explained in detail.


: What is the point of setting Host:webapps, Context:docBase and Context:path
: when all three virtualHost
: always take every application it finds under webapps?

See above ref to deployOnStartup.  =)

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



SV: Tomcat virtualhost bug?

2004-05-25 Thread Trond Hersløv
Thanks QM,
funny as it sounds, but nothing works and I'm happy.
No I must just deploy my apps manually. GREAT!

I'll drink a cold norwegian beer now. - haven't slept since saturday.

Thanks again.



-Opprinnelig melding-
Fra: QM [mailto:[EMAIL PROTECTED]
Sendt: Tuesday, May 25, 2004 19:37
Til: Tomcat Users List
Emne: Re: SV: SV: Tomcat virtualhost bug?


On Tue, May 25, 2004 at 07:25:14PM +0200, Trond Hersl?v wrote:
: You say disable deployOnStartup. Did you mean autoDeploy?

Not at all -- I most certainly meant deployOnStartup.
Please search the online Tomcat docs for this term, it is explained in
detail.


: What is the point of setting Host:webapps, Context:docBase and
Context:path
: when all three virtualHost
: always take every application it finds under webapps?

See above ref to deployOnStartup.  =)

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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


**
This email message has been swept by
MIMEsweeper for the presence of computer viruses.
**


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



re: SV: Tomcat virtualhost bug?

2004-05-25 Thread QM
:funny as it sounds, but nothing works and I'm happy.
:No I must just deploy my apps manually. GREAT!

I'm glad that worked.

Static/manual deployment has its benefits, but if you want the automatic
deploy-on-startup behavior (not to be confused with auto-deply!) you
could simply use a separate appBase for each webapp.

That, or run separate Tomcat instances for each webapp.  
(look for CATALINA_BASE in the docs.)

-but clearly, that's a story for another day...

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Tomcat virtualhost bug?

2004-05-24 Thread Trond Hersløv
Hi, I need some help here.
 
Running: Apache 2.0.49, Tomcat 5.0.24 and jk2 2.0.4. Tomcat and the
webserver running on separate machines.
 
The webserver is set up with to virtualhosts. 
test1.athome.no
test2.athome.no
workers2.properties is set up so all *.jsp request are sent to Tomcat.
 
[channel.socket:172.20.201.92:8009]
 
[uri:/*]
 
On Tomcat I have to webapps: app1 and app2.
app1 should be for test1.athome.no
app2 for test2.athome.no
 
I thought everything was fine, BUT then I realized that I could access app2
like this: http://test1.athome.no/test2 http://test1.athome.no/test2 .
What am I doing wrong?
 
Host name=test1.athome.no . appBasewebapps.
.
.
Context path=  docBase=test1 .
/Host
 
The virtual host for test2 is set up in the same way. How can I prevent a
virtual host from having access to all the other webapplications?
 
I appreciate any help I can get.
 
Trond
___
it's 25.may and Norway is getting warmer
 
 
 
 


**
This email message has been swept by
MIMEsweeper for the presence of computer viruses.
**



mod_jk 1.3 and apache 1.3 VirtualHost section

2004-03-24 Thread Michael Kastner
Hello,

I got a problem getting the servlets examples and the admin application 
  via mod_jk 1.3 connector to work. I can call the servlets-examples' 
main page but receive a server error when I want to call a particular 
servlet example.

The jsp-examples work, by the way.

First: To me, it seems the information in the mod_jk 1.3 documentation 
does not explicitly say where to put the JkMount directives. Is it to be 
set in the general section of the httpd.conf or in the VirtualHost section?

Also, do I have to alias _each_ webapp URI?

Well, at the moment I set this in the general section of httpd.conf 
(following the modules section):

-- snip --
JkWorkersFile  /etc/httpd/conf/workers.properties
JkLogFile  /var/log/httpd/mod_jk.log
JkLogLevel info
JkLogStampFormat   [%a %b %d %H:%M:%S %Y] 
JkOptions  +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
-- pins --
and I set this in the Virtual Host section of httpd.conf:

-- snip --
VirtualHost *
 ServerName www.myserver.athome
 DocumentRoot /var/lib/tomcat5/webapps/ROOT
 Alias /admin /var/lib/tomcat5/webapps/admin
 Alias /servlets-examples /var/lib/tomcat5/webapps/servlets-examples
 Alias /jsp-examples /var/lib/tomcat5/webapps/jsp-examples
 JkMount /*.jsp worker1
 JkMount /servlet/* worker1
/VirtualHost
-- pins --
Any help or hint is very much appreciated.

Thanks for reading this

Michael Kastner

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


Re: mod_jk 1.3 and apache 1.3 VirtualHost section

2004-03-24 Thread staf wagemakers
Hi Michael,

You're using Jkmount /servlet which is probably incorrect, you must use
the same url as in tomcat. The correct location for the examples
servlets is /servlets-examples/servlet:

JkMount /servlets-examples/servlet worker1

The idea behind jk is to let apache serve all static content and pass
all dynamic to tomcat, since apache is faster then tomcat. So you should
create an alias for all static content and a jkmount for all jsp's
and servlets.

--
Staf Wagemakers

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


On Wed, Mar 24, 2004 at 10:17:58AM +0100, Michael Kastner wrote:
 
 I got a problem getting the servlets examples and the admin application 
   via mod_jk 1.3 connector to work. I can call the servlets-examples' 
 main page but receive a server error when I want to call a particular 
 servlet example.
 
 The jsp-examples work, by the way.
 
 First: To me, it seems the information in the mod_jk 1.3 documentation 
 does not explicitly say where to put the JkMount directives. Is it to be 
 set in the general section of the httpd.conf or in the VirtualHost 
 section?
 
 Also, do I have to alias _each_ webapp URI?
 
 Well, at the moment I set this in the general section of httpd.conf 
 (following the modules section):
 
 -- snip --
 JkWorkersFile  /etc/httpd/conf/workers.properties
 JkLogFile  /var/log/httpd/mod_jk.log
 JkLogLevel info
 JkLogStampFormat   [%a %b %d %H:%M:%S %Y] 
 JkOptions  +ForwardKeySize +ForwardURICompat -ForwardDirectories
 JkRequestLogFormat %w %V %T
 -- pins --
 
 and I set this in the Virtual Host section of httpd.conf:
 
 -- snip --
 VirtualHost *
  ServerName www.myserver.athome
  DocumentRoot /var/lib/tomcat5/webapps/ROOT
  Alias /admin /var/lib/tomcat5/webapps/admin
  Alias /servlets-examples /var/lib/tomcat5/webapps/servlets-examples
  Alias /jsp-examples /var/lib/tomcat5/webapps/jsp-examples
  JkMount /*.jsp worker1
  JkMount /servlet/* worker1
 /VirtualHost
 -- pins --
 
 Any help or hint is very much appreciated.
 
 Thanks for reading this
 

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



Re: mod_jk 1.3 and apache 1.3 VirtualHost section

2004-03-24 Thread Michael Kastner
Hello Staf,

dankuwel. Then I must have gotten it all wrong. If I recall the 
documentation properly - /servlet/* is supposed to work as a pattern 
for all directory paths where a directory called servlet is the _last_ 
directory in the path. Being followed by the ServletName.

However, I can't find it anymore. So maybe I was fooled by my memory.

Pointing to the servlet directory uri works. So, I think I've got it now.

Thanks again for you help

Michael Kastner

staf wagemakers schrieb:
Hi Michael,

You're using Jkmount /servlet which is probably incorrect, you must use
the same url as in tomcat. The correct location for the examples
servlets is /servlets-examples/servlet:
JkMount /servlets-examples/servlet worker1

The idea behind jk is to let apache serve all static content and pass
all dynamic to tomcat, since apache is faster then tomcat. So you should
create an alias for all static content and a jkmount for all jsp's
and servlets.
--
Staf Wagemakers
email:  staf at patat.org
homepage:   http://staf.patat.org
On Wed, Mar 24, 2004 at 10:17:58AM +0100, Michael Kastner wrote:

I got a problem getting the servlets examples and the admin application 
 via mod_jk 1.3 connector to work. I can call the servlets-examples' 
main page but receive a server error when I want to call a particular 
servlet example.

The jsp-examples work, by the way.

First: To me, it seems the information in the mod_jk 1.3 documentation 
does not explicitly say where to put the JkMount directives. Is it to be 
set in the general section of the httpd.conf or in the VirtualHost 
section?

Also, do I have to alias _each_ webapp URI?

Well, at the moment I set this in the general section of httpd.conf 
(following the modules section):

-- snip --
JkWorkersFile  /etc/httpd/conf/workers.properties
JkLogFile  /var/log/httpd/mod_jk.log
JkLogLevel info
JkLogStampFormat   [%a %b %d %H:%M:%S %Y] 
JkOptions  +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
-- pins --
and I set this in the Virtual Host section of httpd.conf:

-- snip --
VirtualHost *
ServerName www.myserver.athome
DocumentRoot /var/lib/tomcat5/webapps/ROOT
Alias /admin /var/lib/tomcat5/webapps/admin
Alias /servlets-examples /var/lib/tomcat5/webapps/servlets-examples
Alias /jsp-examples /var/lib/tomcat5/webapps/jsp-examples
JkMount /*.jsp worker1
JkMount /servlet/* worker1
/VirtualHost
-- pins --
Any help or hint is very much appreciated.

Thanks for reading this



-
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]


JK2 VirtualHost-relative Location URI mapping

2004-03-14 Thread Adrian Lanning
Hi.
(B
(BDoes anyone know how to get Locations in httpd.conf to be relative to the
(BVirtualHost rather than global?
(B
(BI can get JK2 working properly by explicitly putting domains in my
(Bworkers2.properties file but I'd prefer using mass virtual hosting with jk2
(Band avoid having to add domains to apache (requiring a restart) whenever I
(Bget a new dynamic-website client.
(B
(BThe problem is that when I use the Location directive to map uri's (say
(B"/*.htm") to tomcat, that Location maps ALL "/*.htm" requests even though I
(Bput the Location inside a specific VirtualHost.  This wouldn't be a problem
(Bif all I had on the server were dynamic sites but I have static sites on the
(Bserver as well.
(B
(BAll tomcat app sites are on one IP while static sites are on other IPs
(B(that's how I'm doing mass virtual hosting).
(B
(BI've tried the following configuration
(B
(B+---start snip from httpd.conf---+
(B# this vhost is default for IP1.  All dynamic content sites use IP1.
(BVirtualHost IP1:80
(B...
(BLocation "/*.htm"
(BJkUriSet worker ajp13:localhost:8009
(B    /Location
(B/VirtualHost
(B
(B# this vhost is default for IP2. All static content sites use IP2.
(BVirtualHost IP2:80
(B... regular static site stuff
(B/VirtualHost
(B+---end snip from httpd.conf---+
(B
(BWhat ends up happening is that ALL *.htm pages get sent to Tomcat regardless
(Bof what IP the request comes in on.
(B
(BAm I doing something wrong?  Has anyone done this using JK (1) in case JK2
(Bdoesn't support this?  Is this actually a limitation of Apache rather than
(BJK?
(B
(BServer Stats:
(B  RedHat 9.0
(B  Tomcat 5.0.19 - binary distribution
(B  JK2 2.0.2 - compiled from source.
(B  Apache 2.0.48  - compiled apache from source with
(B mod_ssl. Also use php and openssl in
(B case that makes a difference...
(B
(BThanks,
(BAdrian Lanning
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

tomcat Context != httpd VirtualHost

2004-01-27 Thread Brian Quade
I am trying to set up tomcat with apache so that I can just type 
http://www.mysite.net to see my web site, but when I type that I just 
get the default Apache page that says I set up Apache correctly.  The 
only way I can my web site is if I type http://www.mysite.net/myapp, 
where myapp is the directory where my web application is installed 
(web.xml, WEB-INF, etc.).  Here are the configurations I have tried in 
server.xml.

Host name=www.mysite.net appBase=webapps ... 
   Context path=/myapp docBase=myapp ... /
/Host
*** I see my site with http://www.mysite.net/myapp, but not with 
http://www.mysite.net

Host name=www.mysite.net appBase=webapps ... 
   Context path= docBase=myapp ... /
/Host
*** Same result as above.
*** Setting path= is supposed to make this the default Context for the 
Host.

Host name=www.mysite.net appBase=webapps ... 
   Context path= docBase=ROOT ... /
/Host
*** Didn't move any files into ROOT but I get the same result as above.
Host name=www.mysite.net appBase=webapps ... 
   Context path= docBase=ROOT ... /
/Host
*** Moved all my files into ROOT I can't see my site at all.
Host name=www.mysite.net appBase=webapps/myapp ... 
   Context path= docBase= ... /
/Host
*** Can't see my site at all.
Tomcat automatically creates mod_jk.conf which contains all of the 
tomcat virtual hosts and information from settings in server.xml.  So I 
would think that the problem is some setting in server.xml.  Since I can 
see my site by appending the directory to the end of the web address, I 
know that I am close to having is set up right.  But I need to set it up 
so that it is the default (or root) web application and does not require 
any subdirectory at the end.

What I am trying to do should be the most basic thing that people use 
tomcat and apache for, but I have searched and searched and searched and 
searched and can not find any documentation that tells me to do anything 
other than what I have already tried.  I have found a few email messages 
from people asking the same question but no one can ever answer it.  Is 
this even possible at all?  I have wasted 2 whole days on this already.  
If anyone knows how to do this, please please please post the answer.

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


Apache 2.0.48 Virtualhost with Tomcat

2003-12-17 Thread Lenny Sorey

I have two  Apache 2.0.48 / Tomcat 4.1.29 where I have 
both servers running with JK/2 connector.

The server is a W2K server (No IIS)

I can bring up both local Tomcat sites respectively with the following:

http://localhost/thegoodsite

and

http://localhost/therealgoodsite



Both websites will share the same IP address.

My webapp are located in the following directories

D:\java\Tomcat41\webapps\thegoodsite

D:\java\Tomcat41\webapps\therealgoodsite

My question is how do I define the DocumentRoot
reference in each VirtualHost section and do I need to reference 
JKMOUNT for each VirtualHost?

I don't have any html's in Apache. Nothing but all jsp's
in Tomcat webapps

Thanks in advance for your help.

Lenny Sorey




NameVirtualHost 172.20.30.40

VirtualHost 172.20.30.40

DocumentRoot /www/example1
ServerName www.thegoodsite.com

/VirtualHost

VirtualHost 172.20.30.40

DocumentRoot /www/example2
ServerName www.therealgoodsite.com

/VirtualHost



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



Tomcat web.xml url-pattern Apache httpd.conf VirtualHost xxx.com DocumentRoot

2003-09-17 Thread Bart Lenoir
Hi,

Currently i'm having virtual hosts (subdomains) on Apache-2:
abc.xxx.com
def.xxx.com
ghi.xxx.com
... with different DocumentRoots!

On Tomcat-5 i have a servlet 'file' with url-pattern/file/url-pattern

On workers2.properties i have [uri:/docs/*]

This makes that i got the following:
abc.xxx.com/docs/file
def.xxx.com/docs/file
ghi.xxx.com/docs/file
... and all three of them are showing the expected results.

But i only want:
abc.xxx.com/docs/file

and not:
def.xxx.com/docs/file
ghi.xxx.com/docs/file

What to do to make a servlet for one subdomain only?

Thanks,
b.


http://WWW.ADVENTUREFORUM.NET - Forum on World Travel and Adventure -

http://WWW.ADVENTUREFORUM.NET/worldfacts 

http://WWW.ADVENTUREFORUM.NET/worldnews


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



Tomcat web.xml url-pattern Apache httpd.conf VirtualHost xxx.com DocumentRoot

2003-09-16 Thread [EMAIL PROTECTED]
Hi,

Currently i'm having virtual hosts (subdomains) on Apache-2:
abc.xxx.com
def.xxx.com
ghi.xxx.com
... with different DocumentRoots!

On Tomcat-5 i have a servlet 'file' with url-pattern/file/url-pattern

On workers2.properties i have [uri:/docs/*]

This makes that i got the following:
abc.xxx.com/docs/file
def.xxx.com/docs/file
ghi.xxx.com/docs/file
... and all three of them are showing the expected results.

But i only want:
abc.xxx.com/docs/file

and not:
def.xxx.com/docs/file
ghi.xxx.com/docs/file

What to do to make a servlet for one subdomain only?

Thanks,
b.


http://WWW.ADVENTUREFORUM.NET - Forum on World Travel and Adventure -

http://WWW.ADVENTUREFORUM.NET/worldfacts 

http://WWW.ADVENTUREFORUM.NET/worldnews


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



Apache2.0.46, Tomcat4.1.24, SSL, Virtualhost

2003-06-04 Thread Christian Schlaefcke
Hi all,

after I took a very hard ride I got Tomcat via mod_jk working with
Apache/SSL on a Suse7 machine. So the real work can begin now:
What I want to do is to configure Tomcat in a way that it serves multiple
instances with different CATALINA_BASE settings. I want to reach those
instances (let there be 3 or 4) with different VirtualHosts and different
Ports.

For the beginning I configured only 2 instances of tomcat that are
listening to ports 8880 (instance_1) and 8980 (instance_2). AJP is
configured to listen on 8009 (instance_1) and 8019 (instance_2).

In general the connection via https://myhost is working (tested with
/examples.

I set up the additional virtual hosts in ssl.conf:

VirtualHost _default_:7443
DocumentRoot /var/www/ssl_instance01

ServerName my_host:7443
ErrorLog logs/error_log
TransferLog logs/access_log

SSLEngine on

SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:
+EXP:+eNULL
SSLCertificateFile /usr/local/apache2/conf/ssl.crt/server.crt
SSLCertificateKeyFile /usr/local/apache2/conf/ssl.key/server.key

#Pointing to the ROOT of instance_1
Location /*
 JkUriSet worker ajp13:localhost:8009
/Location
/VirtualHost

VirtualHost _default_:9443
DocumentRoot /var/www/ssl_instance02

ServerName my_host:9443
ErrorLog logs/error_log
TransferLog logs/access_log

SSLEngine on

SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:
+EXP:+eNULL
SSLCertificateFile /usr/local/apache2/conf/ssl.crt/server.crt
SSLCertificateKeyFile /usr/local/apache2/conf/ssl.key/server.key

#Pointing to the ROOT of instance_2
Location /*
 JkUriSet worker ajp13:localhost:8019
/Location
/VirtualHost

I also have the default vhost listening on port 443.

I can reach the machine with https://my_host;, https://my_host:7443;,
https://my_host:9443;. The problem is that the addresses that normally
should point to different instances of Tomcat return the ROOT-content of
the same instance.

What am I missing. Am I approaching the wrong way? How can I configure
Apache/Tomcat in a way I described?

Thank s for any help!

Regards,

Chris



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



Tomcat with Apache VirtualHost - Please

2003-03-11 Thread Shannon Scott
Hello,
I have two domain names that I want to serve from one webserver.
I have set up DNS and now the apache is working fine.  The webserver 
serves up the html from the DocumentRoot for both domains, but Tomcat 
serves pages from the DocumentRoot of the first domains for both the domains.

How do I set up the server.xml for two domains using the same IP?
Do I have to use different IP addresses?

Attached is a snip for my httpd.conf and server.xml.
Please someone tell me if you see what I am doing wrong...
Any help is greatly appreciated.
Thank You
Shannon



Tomcat with Apache VirtualHost - with attach

2003-03-11 Thread Shannon Scott



Sorry I forgot 
to attach the file.
I have two 
domain names that I want to serve from one webserver.I have set up DNS and 
now the apache is working fine. The webserver serves up the html from 
the DocumentRoot for both domains, but Tomcat serves pages from the 
DocumentRoot of the first domains for both the domains.How do I set up 
the server.xml for two domains using the same IP?Do I have to use different 
IP addresses?Attached is a snip for my httpd.conf and 
server.xml.Please someone tell me if you see what I am doing wrong...Any 
help is greatly appreciated.Thank 
YouShannon
httpd.conf snip:
NameVirtualHost  192.168.201.2
VirtualHost 192.168.201.2
ServerAdmin [EMAIL PROTECTED]
DocumentRoot/var/tomcat4/webapps/ROOT
   ServerName  host1.com
ServerAlias www.host1.com
JkMount /servlet/* ajp13
JkMount /*.jsp ajp13  
/VirtualHost

VirtualHost 192.168.201.2
ServerAdmin [EMAIL PROTECTED]
DocumentRoot/var/tomcat4/webapps/host2
   ServerName  host2.com
ServerAlias www.host2.com
JkMount /servlet/* ajp13
JkMount /*.jsp ajp13
/VirtualHost

server.xml snip:
Engine name=Apache-Integrate defaultHost=host1.com debug=0
  Host name=host1.com debug=0 appBase=webapps unpackWARs=true
  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
  modJk=/etc/httpd/modules/mod_jk.so jkDebug=info
  workersConfig=/var/tomcat4/conf/jk/workers.properties
  jkLog=/var/tomcat4/logs/mod_jk.log /
  
 Aliaswww.host1.com/Alias
  /Host
  
  Host name=host2.com debug=0 appBase=webapps unpackWARs=true
  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
  modJk=/etc/httpd/modules/mod_jk.so jkDebug=info
  workersConfig=/var/tomcat4/conf/jk/workers.properties
  jkLog=/var/tomcat4/logs/mod_jk.log /
  
 Aliaswww.host2.com/Alias
  /Host  

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

Tomcat4 with Apache VirtualHost

2003-03-09 Thread Shannon Scott
Hello,
I have two domain names that I want to serve from one webserver.
I have set up DNS and now the apache is working fine.  The webserver 
serves up the html from the DocumentRoot for both domains, but Tomcat 
serves pages from the DocumentRoot of the first domains for both the domains.

How do I set up the server.xml for two domains using the same IP?
Do I have to use different IP addresses?

I followed a recent thread on this subject, but I guess my situation is not the same.

Attached and pasted below is a snip for my httpd.conf and server.xml.
Any help is greatly appreciated.
Thank You
Shannon

My system:
Linux RedHat 8.0
Apache 2.0.43
Tomcat 4.0.2
Mod_Jk Connector

httpd.conf snip:
NameVirtualHost  192.168.201.2
VirtualHost 192.168.201.2
ServerAdmin [EMAIL PROTECTED]
DocumentRoot/var/tomcat4/webapps/ROOT
   ServerName  host1.com
ServerAlias www.host1.com
JkMount /servlet/* ajp13
JkMount /*.jsp ajp13  
/VirtualHost

VirtualHost 192.168.201.2
ServerAdmin [EMAIL PROTECTED]
DocumentRoot/var/tomcat4/webapps/host2
   ServerName  host2.com
ServerAlias www.host2.com
JkMount /servlet/* ajp13
JkMount /*.jsp ajp13
/VirtualHost

server.xml snip:
Engine name=Apache-Integrate defaultHost=host1.com debug=0
  Host name=host1.com debug=0 appBase=webapps unpackWARs=true
  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
  modJk=/etc/httpd/modules/mod_jk.so jkDebug=info
  workersConfig=/var/tomcat4/conf/jk/workers.properties
  jkLog=/var/tomcat4/logs/mod_jk.log /
  
 Aliaswww.host1.com/Alias
  /Host
  
  Host name=host2.com debug=0 appBase=webapps unpackWARs=true
  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
  modJk=/etc/httpd/modules/mod_jk.so jkDebug=info
  workersConfig=/var/tomcat4/conf/jk/workers.properties
  jkLog=/var/tomcat4/logs/mod_jk.log /
  
 Aliaswww.host2.com/Alias
  /Host  


Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80

2003-02-05 Thread tomcat guy
Is that the way you have yours configured?
(i.e. virtualhost abc.com )
It's not working here, everything goes to the localHost...

I don't know what is going on here.  I had things working ok earlier then I
made the switch to jk2, to see if Tomcat would run the way it was suppose to
(if I had the proper config), and had ALL kinds of problems!  Not enough
documentation on it...
I went back to my original configuration and ppphhhttt...  I used the exact
same copies of mod_jk, workers, server.xml, etc

It is just a warning should I ignore the darn thing?


- Original Message -
From: Oscar Carrillo [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, February 04, 2003 3:27 AM
Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost
www.abc.com:80


 Like I said I'm not an expert on apache configuration, but I have it as my
 domainname. One of the other messages someone followed up with said it has
 to be the actual domainname that is going to host the virtual hosts.

 I'm pretty sure you need to NOT have the asterisk in the VirtualHost *
 line you have. Look below to see the lines I would change.

 I can't get to it right now, but I'll post my related configuration
 tonight.

 Oscar


 On Tue, 4 Feb 2003, chris schild wrote:

  Oscar, per the docs that I used NameVirutalHost is suppose to use the *.
 
  - Original Message -
  From: Oscar Carrillo [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Monday, February 03, 2003 10:26 AM
  Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost
  www.abc.com:80
 
 
   I'm not very familiar with Apache configuration, but shouldn't your
*
   be replaced with the ServerName. I'm not sure what NameVirtualHost
   should be set at. I have mine set to the servername of the only
servername
   I have.
  
   Oscar
  
  
   On Mon, 3 Feb 2003, chris schild wrote:
  
Sorry, here is the error from apache.exe -t
   
VirtualHost www.zcompany.com:80 overlaps with VirtualHost
  www.abc.com:80,
the first has precedence, perhaps you need a NameVirtualHost
directive
   
- Original Message -
   
From: Oscar Carrillo [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, February 03, 2003 8:59 AM
Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost
www.abc.com:80
   
   
 What error?

 Oscar

 On Mon, 3 Feb 2003, tomcat guy wrote:

  Has anyone come across  this warning?  Any guesses as to what is
  wrong?
 
  Here is the httpd.conf definition:
 
  NameVirtualHost *
   NameVirtualHost cde.com #assuming cde.com is your dns name
 
  VirtualHost *
   VirtualHost cde.com #Edit this
  ServerName cde.com
  ServerAlias www.cde.com
  DocumentRoot /apache/Tomcat4.1/CDE
  JkMount /*.jsp ajp13
  JkMount /servlet/* ajp13
  ErrorLog logs/cde.com-error_log
  CustomLog logs/cde.com-access_log common
  /VirtualHost
 
  VirtualHost *
   VirtualHost qv.com #edit this
  ServerName qv.com
  ServerAlias www.qv.com
  DocumentRoot /apache/Tomcat4.1/QV
  JkMount /*.jsp ajp13
  JkMount /servlet/* ajp13
  ErrorLog logs/qv.com-error_log
  CustomLog logs/qv.com-access_log common
  /VirtualHost
 
  VirtualHost *
   VirtualHost abc.com #edit this
  ServerName abc.com
  ServerAlias www.abc.com
  DocumentRoot /apache/Tomcat4.1/AMW
  JkMount /*.jsp ajp13
  JkMount /servlet/* ajp13
  ErrorLog logs/abc.com-error_log
  CustomLog logs/abc.com-access_log common
  /VirtualHost
 
 
  # !-- !!! added workers file for apache tomcat integration  --
  JkWorkersFile d:\Apache\Tomcat4.1\conf\jk\workers.properties
  JkLogFile d:\Apache\Tomcat4.1\logs\mod_jk.log
  Include d:/Apache/Tomcat4.1/conf/auto/mod_jk.conf
 
 
  everything appears to be working normally but why the error???


   
 -
 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]
   
  
  
   -
   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]
 


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

Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80

2003-02-05 Thread Oscar Carrillo
Yes, that's the way I have mine. I just noticed now that you say that
everything is working OK in your original message. So I imagine that it is
just a redundancy. I would try and pulling out the relevant info in
mod_jk.conf and putting it in http.conf manually. I mention it below.

Where are you seeing this warning? Is it in tomcat logs or apache logs?

I only have 2 virtual hosts, one for SSL and one for non-SSL. I had to
have virtual hosts, so that I could completely separate out SSL and
non-SSL traffic, so that non-ssl traffic would be re-directed to a
different webapp than ssl traffic. I'm not doing exactly what you're doing 
so my setup may not be completely applicable.

I commented out the
#Include /path/to/mod_jk.conf
because that would make the JkMounts global. You might want to try and do 
the same. 

Here are my recent notes on my configuration that I did after the fact, so 
I haven't fully tested this to make sure this is exactly what I did.
But maybe this helps you. You may notice that I have struts too, so I have 
a map to *.do files too.

You might also want to check how things work from the same computer and 
from another computer over the network. And see if the behavior is the 
same.

Good luck,
Oscar

--CONFIGURE APACHE/NON-SSL---
#Look for similar lines.
#Make sure you have lines that say this in conf/http.conf:
Listen myhost.mydomain:80

#Same with this line:
ServerName myhost.mydomain:80

#Same with this line:
NameVirtualHost myhost.mydomain

#Make sure you have VirtualHost like this
--
VirtualHost myhost.mydomain:80
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/local/http_nonsecure
ServerName myhost.mydomain:80
ErrorLog logs/webapp_public-error_log
CustomLog logs/webapp_public-access_log common

# Static files
Alias /mywebapp 
/usr/local/jakarta-tomcat-4.1.18/webapps/mywebapp_nonsecure

Directory 
/usr/local/jakarta-tomcat-4.1.18/webapps/mywebapp_nonsecure
Options Indexes FollowSymLinks
DirectoryIndex index.jsp
/Directory

# Deny direct access to WEB-INF and META-INF
#
Location /mywebapp_nonsecure/WEB-INF/*

AllowOverride None
deny from all
/Location

Location /mywebapp_nonsecure/META-INF/*
AllowOverride None
deny from all
/Location

#Add these lines too
#It's likely you don't want people to access your
#secure site via plain old http. So I tell it to go
#somewhere else where I may have useful but unsecured
#site
JkMount /mywebapp_nonsecure/*.do  ajp13
JkMount /mywebapp_nonsecure/*.jsp  ajp13
 /VirtualHost

#Make sure you add these lines too
JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
JkLogFile /usr/local/tomcat/logs/mod_jk.log

--CONFIGURE APACHE/SSL---
#Now make changes in ssl.conf
#Look for similar lines and make sure it looks like this:

VirtualHost _default_:443

#  General setup for the virtual host
DocumentRoot /usr/local/http_secure
#ServerName new.host.name:443
ServerName myhost.mydomain:443
ServerAdmin [EMAIL PROTECTED]
ErrorLog logs/error_log
TransferLog logs/access_log

Redirect / https://myhost.mydomain/mywebapp

# Static files
Alias /mywebapp /usr/local/jakarta-tomcat-4.1.18/webapps/mywebapp

Directory /usr/local/jakarta-tomcat-4.1.18/webapps/mywebapp
Options Indexes FollowSymLinks
DirectoryIndex index.jsp
/Directory


# Deny direct access to WEB-INF and META-INF
#
Location /mywebapp/WEB-INF/*
AllowOverride None
deny from all
/Location

Location /mywebapp/META-INF/*
AllowOverride None
deny from all
/Location

JkMount /mywebapp/*.do  ajp13
JkMount /mywebapp/*.jsp  ajp13
--



On Wed, 5 Feb 2003, tomcat guy wrote:

 Is that the way you have yours configured?
 (i.e. virtualhost abc.com )
 It's not working here, everything goes to the localHost...
 
 I don't know what is going on here.  I had things working ok earlier then I
 made the switch to jk2, to see if Tomcat would run the way it was suppose to
 (if I had the proper config), and had ALL kinds of problems!  Not enough
 documentation on it...
 I went back to my original configuration and ppphhhttt...  I used the exact
 same copies of mod_jk, workers, server.xml, etc
 
 It is just a warning should I ignore the darn thing?
 
 
 - Original Message -
 From: Oscar Carrillo [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, February 04, 2003 3:27 AM
 Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost
 www.abc.com:80
 
 
  Like I said I'm not an expert on apache configuration, but I have it as my
  domainname. One of the other messages someone followed up with said it has
  to be the actual domainname that is going to host the virtual hosts.
 
  I'm pretty sure you need to NOT have the asterisk in the VirtualHost *
  line you have. Look below to see the lines I would change

Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80

2003-02-05 Thread tomcat guy
Thanks Oscar, I'll see what happens.  Your example appears to be a good
example of the configuration that I am looking forssl and all...

As for the error msg, it came from doing a syntax check (i.e.
apache.exe -t).  It just suddenly appeared the other day.  Every thing
appears to perform normally but I'll have to keep it in mind if there is a
future problem with my vhosts the first has precedence part of the msg
is what bothers me...
Thanks,
Chris

- Original Message -
From: Oscar Carrillo [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, February 05, 2003 2:01 AM
Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost
www.abc.com:80


 Yes, that's the way I have mine. I just noticed now that you say that
 everything is working OK in your original message. So I imagine that it is
 just a redundancy. I would try and pulling out the relevant info in
 mod_jk.conf and putting it in http.conf manually. I mention it below.

 Where are you seeing this warning? Is it in tomcat logs or apache logs?

 I only have 2 virtual hosts, one for SSL and one for non-SSL. I had to
 have virtual hosts, so that I could completely separate out SSL and
 non-SSL traffic, so that non-ssl traffic would be re-directed to a
 different webapp than ssl traffic. I'm not doing exactly what you're doing
 so my setup may not be completely applicable.

 I commented out the
 #Include /path/to/mod_jk.conf
 because that would make the JkMounts global. You might want to try and do
 the same.

 Here are my recent notes on my configuration that I did after the fact, so
 I haven't fully tested this to make sure this is exactly what I did.
 But maybe this helps you. You may notice that I have struts too, so I have
 a map to *.do files too.

 You might also want to check how things work from the same computer and
 from another computer over the network. And see if the behavior is the
 same.

 Good luck,
 Oscar

 --CONFIGURE APACHE/NON-SSL---
 #Look for similar lines.
 #Make sure you have lines that say this in conf/http.conf:
 Listen myhost.mydomain:80

 #Same with this line:
 ServerName myhost.mydomain:80

 #Same with this line:
 NameVirtualHost myhost.mydomain

 #Make sure you have VirtualHost like this
 --
 VirtualHost myhost.mydomain:80
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /usr/local/http_nonsecure
 ServerName myhost.mydomain:80
 ErrorLog logs/webapp_public-error_log
 CustomLog logs/webapp_public-access_log common

 # Static files
 Alias /mywebapp
 /usr/local/jakarta-tomcat-4.1.18/webapps/mywebapp_nonsecure

 Directory
 /usr/local/jakarta-tomcat-4.1.18/webapps/mywebapp_nonsecure
 Options Indexes FollowSymLinks
 DirectoryIndex index.jsp
 /Directory

 # Deny direct access to WEB-INF and META-INF
 #
 Location /mywebapp_nonsecure/WEB-INF/*

 AllowOverride None
 deny from all
 /Location

 Location /mywebapp_nonsecure/META-INF/*
 AllowOverride None
 deny from all
 /Location

 #Add these lines too
 #It's likely you don't want people to access your
 #secure site via plain old http. So I tell it to go
 #somewhere else where I may have useful but unsecured
 #site
 JkMount /mywebapp_nonsecure/*.do  ajp13
 JkMount /mywebapp_nonsecure/*.jsp  ajp13
  /VirtualHost

 #Make sure you add these lines too
 JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
 JkLogFile /usr/local/tomcat/logs/mod_jk.log

 --CONFIGURE APACHE/SSL---
 #Now make changes in ssl.conf
 #Look for similar lines and make sure it looks like this:

 VirtualHost _default_:443

 #  General setup for the virtual host
 DocumentRoot /usr/local/http_secure
 #ServerName new.host.name:443
 ServerName myhost.mydomain:443
 ServerAdmin [EMAIL PROTECTED]
 ErrorLog logs/error_log
 TransferLog logs/access_log

 Redirect / https://myhost.mydomain/mywebapp

 # Static files
 Alias /mywebapp /usr/local/jakarta-tomcat-4.1.18/webapps/mywebapp

 Directory /usr/local/jakarta-tomcat-4.1.18/webapps/mywebapp
 Options Indexes FollowSymLinks
 DirectoryIndex index.jsp
 /Directory


 # Deny direct access to WEB-INF and META-INF
 #
 Location /mywebapp/WEB-INF/*
 AllowOverride None
 deny from all
 /Location

 Location /mywebapp/META-INF/*
 AllowOverride None
 deny from all
 /Location

 JkMount /mywebapp/*.do  ajp13
 JkMount /mywebapp/*.jsp  ajp13
 --



 On Wed, 5 Feb 2003, tomcat guy wrote:

  Is that the way you have yours configured?
  (i.e. virtualhost abc.com )
  It's not working here, everything goes to the localHost...
 
  I don't know what is going on here.  I had things working ok earlier
then I
  made the switch to jk2, to see if Tomcat would run the way it was
suppose to
  (if I had the proper config), and had ALL kinds of problems!  Not enough
  documentation on it...
  I

RE: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80

2003-02-04 Thread Ralph Einfeldt
As your example doesn't contain www.zcompany.com I would guess 
that you have an config error in the part of the http.conf that 
you didn't post. (Like a ServerName www.zcompany.com outside 
the virtual host definitions)

 -Original Message-
 From: tomcat guy [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 04, 2003 1:57 AM
 To: Tomcat Users List
 Subject: VirtualHost www.zcompany.com:80 overlaps VirtualHost
 www.abc.com:80
 
 Here is the httpd.conf definition:
 
 NameVirtualHost *
 
 VirtualHost *
 ServerName cde.com
 /VirtualHost
 
 VirtualHost *
 ServerName qv.com
 /VirtualHost
 
 VirtualHost *
 ServerName abc.com
 /VirtualHost
 

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




Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80

2003-02-04 Thread chris schild
Galbayar, I didn't get an explanation but let me try and decipher...
You are saying for EACH VirtualHost to have a Directory  directive?
Defined where?  Below the DocumentRoot in httpd.conf?  Or below each
VirtualHost?

Would the JkMount(s) also go below each VirtualHost?

- Original Message -
From: Galbayar Dorjgotov [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, February 03, 2003 8:58 PM
Subject: RE: VirtualHost www.zcompany.com:80 overlaps VirtualHost
www.abc.com:80


 VirtualHost *
 ServerName cde.com
 ServerAlias www.cde.com
 DocumentRoot /apache/Tomcat4.1/CDE
 ErrorLog logs/cde.com-error_log
 CustomLog logs/cde.com-access_log common
 /VirtualHost

 Directory /apache/Tomcat4.1/CDE
 Options Indexes MultiViews
 AllowOverride None
 Order allow,deny
 Allow from all
 DirectoryIndex main.jsp
 /Directory

 JkMount www.cde.com/* ajp12
 JkMount www.cde.com/*.jsp ajp12


 -Original Message-
 From: tomcat guy [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 04, 2003 8:57 AM
 To: Tomcat Users List
 Subject: VirtualHost www.zcompany.com:80 overlaps VirtualHost
 www.abc.com:80


 Has anyone come across  this warning?  Any guesses as to what is wrong?

 Here is the httpd.conf definition:

 NameVirtualHost *

 VirtualHost *
 ServerName cde.com
 ServerAlias www.cde.com
 DocumentRoot /apache/Tomcat4.1/CDE
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13
 ErrorLog logs/cde.com-error_log
 CustomLog logs/cde.com-access_log common
 /VirtualHost

 VirtualHost *
 ServerName qv.com
 ServerAlias www.qv.com
 DocumentRoot /apache/Tomcat4.1/QV
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13
 ErrorLog logs/qv.com-error_log
 CustomLog logs/qv.com-access_log common
 /VirtualHost

 VirtualHost *
 ServerName abc.com
 ServerAlias www.abc.com
 DocumentRoot /apache/Tomcat4.1/AMW
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13
 ErrorLog logs/abc.com-error_log
 CustomLog logs/abc.com-access_log common
 /VirtualHost


 # !-- !!! added workers file for apache tomcat integration  --
 JkWorkersFile d:\Apache\Tomcat4.1\conf\jk\workers.properties
 JkLogFile d:\Apache\Tomcat4.1\logs\mod_jk.log
 Include d:/Apache/Tomcat4.1/conf/auto/mod_jk.conf


 everything appears to be working normally but why the error???

 -
 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: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80

2003-02-04 Thread chris schild
Oscar, per the docs that I used NameVirutalHost is suppose to use the *.

- Original Message -
From: Oscar Carrillo [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, February 03, 2003 10:26 AM
Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost
www.abc.com:80


 I'm not very familiar with Apache configuration, but shouldn't your *
 be replaced with the ServerName. I'm not sure what NameVirtualHost
 should be set at. I have mine set to the servername of the only servername
 I have.

 Oscar


 On Mon, 3 Feb 2003, chris schild wrote:

  Sorry, here is the error from apache.exe -t
 
  VirtualHost www.zcompany.com:80 overlaps with VirtualHost
www.abc.com:80,
  the first has precedence, perhaps you need a NameVirtualHost directive
 
  - Original Message -
 
  From: Oscar Carrillo [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Monday, February 03, 2003 8:59 AM
  Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost
  www.abc.com:80
 
 
   What error?
  
   Oscar
  
   On Mon, 3 Feb 2003, tomcat guy wrote:
  
Has anyone come across  this warning?  Any guesses as to what is
wrong?
   
Here is the httpd.conf definition:
   
NameVirtualHost *
   
VirtualHost *
ServerName cde.com
ServerAlias www.cde.com
DocumentRoot /apache/Tomcat4.1/CDE
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
ErrorLog logs/cde.com-error_log
CustomLog logs/cde.com-access_log common
/VirtualHost
   
VirtualHost *
ServerName qv.com
ServerAlias www.qv.com
DocumentRoot /apache/Tomcat4.1/QV
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
ErrorLog logs/qv.com-error_log
CustomLog logs/qv.com-access_log common
/VirtualHost
   
VirtualHost *
ServerName abc.com
ServerAlias www.abc.com
DocumentRoot /apache/Tomcat4.1/AMW
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
ErrorLog logs/abc.com-error_log
CustomLog logs/abc.com-access_log common
/VirtualHost
   
   
# !-- !!! added workers file for apache tomcat integration  --
JkWorkersFile d:\Apache\Tomcat4.1\conf\jk\workers.properties
JkLogFile d:\Apache\Tomcat4.1\logs\mod_jk.log
Include d:/Apache/Tomcat4.1/conf/auto/mod_jk.conf
   
   
everything appears to be working normally but why the error???
  
  
   -
   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]
 


 -
 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: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80

2003-02-04 Thread Oscar Carrillo
Like I said I'm not an expert on apache configuration, but I have it as my
domainname. One of the other messages someone followed up with said it has
to be the actual domainname that is going to host the virtual hosts.

I'm pretty sure you need to NOT have the asterisk in the VirtualHost * 
line you have. Look below to see the lines I would change.

I can't get to it right now, but I'll post my related configuration
tonight.

Oscar


On Tue, 4 Feb 2003, chris schild wrote:

 Oscar, per the docs that I used NameVirutalHost is suppose to use the *.
 
 - Original Message -
 From: Oscar Carrillo [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, February 03, 2003 10:26 AM
 Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost
 www.abc.com:80
 
 
  I'm not very familiar with Apache configuration, but shouldn't your *
  be replaced with the ServerName. I'm not sure what NameVirtualHost
  should be set at. I have mine set to the servername of the only servername
  I have.
 
  Oscar
 
 
  On Mon, 3 Feb 2003, chris schild wrote:
 
   Sorry, here is the error from apache.exe -t
  
   VirtualHost www.zcompany.com:80 overlaps with VirtualHost
 www.abc.com:80,
   the first has precedence, perhaps you need a NameVirtualHost directive
  
   - Original Message -
  
   From: Oscar Carrillo [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Monday, February 03, 2003 8:59 AM
   Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost
   www.abc.com:80
  
  
What error?
   
Oscar
   
On Mon, 3 Feb 2003, tomcat guy wrote:
   
 Has anyone come across  this warning?  Any guesses as to what is
 wrong?

 Here is the httpd.conf definition:

 NameVirtualHost *
  NameVirtualHost cde.com #assuming cde.com is your dns name

 VirtualHost *
  VirtualHost cde.com #Edit this
 ServerName cde.com
 ServerAlias www.cde.com
 DocumentRoot /apache/Tomcat4.1/CDE
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13
 ErrorLog logs/cde.com-error_log
 CustomLog logs/cde.com-access_log common
 /VirtualHost

 VirtualHost *
  VirtualHost qv.com #edit this
 ServerName qv.com
 ServerAlias www.qv.com
 DocumentRoot /apache/Tomcat4.1/QV
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13
 ErrorLog logs/qv.com-error_log
 CustomLog logs/qv.com-access_log common
 /VirtualHost

 VirtualHost *
  VirtualHost abc.com #edit this
 ServerName abc.com
 ServerAlias www.abc.com
 DocumentRoot /apache/Tomcat4.1/AMW
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13
 ErrorLog logs/abc.com-error_log
 CustomLog logs/abc.com-access_log common
 /VirtualHost


 # !-- !!! added workers file for apache tomcat integration  --
 JkWorkersFile d:\Apache\Tomcat4.1\conf\jk\workers.properties
 JkLogFile d:\Apache\Tomcat4.1\logs\mod_jk.log
 Include d:/Apache/Tomcat4.1/conf/auto/mod_jk.conf


 everything appears to be working normally but why the error???
   
   
-
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]
  
 
 
  -
  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]
 


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




VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80

2003-02-03 Thread tomcat guy
Has anyone come across  this warning?  Any guesses as to what is wrong?

Here is the httpd.conf definition:

NameVirtualHost *

VirtualHost *
ServerName cde.com
ServerAlias www.cde.com
DocumentRoot /apache/Tomcat4.1/CDE
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13 
ErrorLog logs/cde.com-error_log
CustomLog logs/cde.com-access_log common
/VirtualHost

VirtualHost *
ServerName qv.com
ServerAlias www.qv.com
DocumentRoot /apache/Tomcat4.1/QV
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13 
ErrorLog logs/qv.com-error_log
CustomLog logs/qv.com-access_log common
/VirtualHost

VirtualHost *
ServerName abc.com
ServerAlias www.abc.com
DocumentRoot /apache/Tomcat4.1/AMW
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13 
ErrorLog logs/abc.com-error_log
CustomLog logs/abc.com-access_log common
/VirtualHost


# !-- !!! added workers file for apache tomcat integration  --
JkWorkersFile d:\Apache\Tomcat4.1\conf\jk\workers.properties
JkLogFile d:\Apache\Tomcat4.1\logs\mod_jk.log
Include d:/Apache/Tomcat4.1/conf/auto/mod_jk.conf


everything appears to be working normally but why the error???


Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80

2003-02-03 Thread Oscar Carrillo
What error?

Oscar

On Mon, 3 Feb 2003, tomcat guy wrote:

 Has anyone come across  this warning?  Any guesses as to what is wrong?
 
 Here is the httpd.conf definition:
 
 NameVirtualHost *
 
 VirtualHost *
 ServerName cde.com
 ServerAlias www.cde.com
 DocumentRoot /apache/Tomcat4.1/CDE
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13 
 ErrorLog logs/cde.com-error_log
 CustomLog logs/cde.com-access_log common
 /VirtualHost
 
 VirtualHost *
 ServerName qv.com
 ServerAlias www.qv.com
 DocumentRoot /apache/Tomcat4.1/QV
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13 
 ErrorLog logs/qv.com-error_log
 CustomLog logs/qv.com-access_log common
 /VirtualHost
 
 VirtualHost *
 ServerName abc.com
 ServerAlias www.abc.com
 DocumentRoot /apache/Tomcat4.1/AMW
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13 
 ErrorLog logs/abc.com-error_log
 CustomLog logs/abc.com-access_log common
 /VirtualHost
 
 
 # !-- !!! added workers file for apache tomcat integration  --
 JkWorkersFile d:\Apache\Tomcat4.1\conf\jk\workers.properties
 JkLogFile d:\Apache\Tomcat4.1\logs\mod_jk.log
 Include d:/Apache/Tomcat4.1/conf/auto/mod_jk.conf
 
 
 everything appears to be working normally but why the error???


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




RE: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80

2003-02-03 Thread Galbayar Dorjgotov
VirtualHost *
ServerName cde.com
ServerAlias www.cde.com
DocumentRoot /apache/Tomcat4.1/CDE
ErrorLog logs/cde.com-error_log
CustomLog logs/cde.com-access_log common
/VirtualHost

Directory /apache/Tomcat4.1/CDE
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex main.jsp
/Directory

JkMount www.cde.com/* ajp12
JkMount www.cde.com/*.jsp ajp12


-Original Message-
From: tomcat guy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 04, 2003 8:57 AM
To: Tomcat Users List
Subject: VirtualHost www.zcompany.com:80 overlaps VirtualHost
www.abc.com:80


Has anyone come across  this warning?  Any guesses as to what is wrong?

Here is the httpd.conf definition:

NameVirtualHost *

VirtualHost *
ServerName cde.com
ServerAlias www.cde.com
DocumentRoot /apache/Tomcat4.1/CDE
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13 
ErrorLog logs/cde.com-error_log
CustomLog logs/cde.com-access_log common
/VirtualHost

VirtualHost *
ServerName qv.com
ServerAlias www.qv.com
DocumentRoot /apache/Tomcat4.1/QV
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13 
ErrorLog logs/qv.com-error_log
CustomLog logs/qv.com-access_log common
/VirtualHost

VirtualHost *
ServerName abc.com
ServerAlias www.abc.com
DocumentRoot /apache/Tomcat4.1/AMW
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13 
ErrorLog logs/abc.com-error_log
CustomLog logs/abc.com-access_log common
/VirtualHost


# !-- !!! added workers file for apache tomcat integration  --
JkWorkersFile d:\Apache\Tomcat4.1\conf\jk\workers.properties
JkLogFile d:\Apache\Tomcat4.1\logs\mod_jk.log
Include d:/Apache/Tomcat4.1/conf/auto/mod_jk.conf


everything appears to be working normally but why the error???

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




Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80

2003-02-03 Thread chris schild
Sorry, here is the error from apache.exe -t

VirtualHost www.zcompany.com:80 overlaps with VirtualHost www.abc.com:80,
the first has precedence, perhaps you need a NameVirtualHost directive

- Original Message -

From: Oscar Carrillo [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, February 03, 2003 8:59 AM
Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost
www.abc.com:80


 What error?

 Oscar

 On Mon, 3 Feb 2003, tomcat guy wrote:

  Has anyone come across  this warning?  Any guesses as to what is wrong?
 
  Here is the httpd.conf definition:
 
  NameVirtualHost *
 
  VirtualHost *
  ServerName cde.com
  ServerAlias www.cde.com
  DocumentRoot /apache/Tomcat4.1/CDE
  JkMount /*.jsp ajp13
  JkMount /servlet/* ajp13
  ErrorLog logs/cde.com-error_log
  CustomLog logs/cde.com-access_log common
  /VirtualHost
 
  VirtualHost *
  ServerName qv.com
  ServerAlias www.qv.com
  DocumentRoot /apache/Tomcat4.1/QV
  JkMount /*.jsp ajp13
  JkMount /servlet/* ajp13
  ErrorLog logs/qv.com-error_log
  CustomLog logs/qv.com-access_log common
  /VirtualHost
 
  VirtualHost *
  ServerName abc.com
  ServerAlias www.abc.com
  DocumentRoot /apache/Tomcat4.1/AMW
  JkMount /*.jsp ajp13
  JkMount /servlet/* ajp13
  ErrorLog logs/abc.com-error_log
  CustomLog logs/abc.com-access_log common
  /VirtualHost
 
 
  # !-- !!! added workers file for apache tomcat integration  --
  JkWorkersFile d:\Apache\Tomcat4.1\conf\jk\workers.properties
  JkLogFile d:\Apache\Tomcat4.1\logs\mod_jk.log
  Include d:/Apache/Tomcat4.1/conf/auto/mod_jk.conf
 
 
  everything appears to be working normally but why the error???


 -
 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: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80

2003-02-03 Thread Oscar Carrillo
I'm not very familiar with Apache configuration, but shouldn't your *
be replaced with the ServerName. I'm not sure what NameVirtualHost 
should be set at. I have mine set to the servername of the only servername 
I have.

Oscar


On Mon, 3 Feb 2003, chris schild wrote:

 Sorry, here is the error from apache.exe -t
 
 VirtualHost www.zcompany.com:80 overlaps with VirtualHost www.abc.com:80,
 the first has precedence, perhaps you need a NameVirtualHost directive
 
 - Original Message -
 
 From: Oscar Carrillo [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, February 03, 2003 8:59 AM
 Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost
 www.abc.com:80
 
 
  What error?
 
  Oscar
 
  On Mon, 3 Feb 2003, tomcat guy wrote:
 
   Has anyone come across  this warning?  Any guesses as to what is wrong?
  
   Here is the httpd.conf definition:
  
   NameVirtualHost *
  
   VirtualHost *
   ServerName cde.com
   ServerAlias www.cde.com
   DocumentRoot /apache/Tomcat4.1/CDE
   JkMount /*.jsp ajp13
   JkMount /servlet/* ajp13
   ErrorLog logs/cde.com-error_log
   CustomLog logs/cde.com-access_log common
   /VirtualHost
  
   VirtualHost *
   ServerName qv.com
   ServerAlias www.qv.com
   DocumentRoot /apache/Tomcat4.1/QV
   JkMount /*.jsp ajp13
   JkMount /servlet/* ajp13
   ErrorLog logs/qv.com-error_log
   CustomLog logs/qv.com-access_log common
   /VirtualHost
  
   VirtualHost *
   ServerName abc.com
   ServerAlias www.abc.com
   DocumentRoot /apache/Tomcat4.1/AMW
   JkMount /*.jsp ajp13
   JkMount /servlet/* ajp13
   ErrorLog logs/abc.com-error_log
   CustomLog logs/abc.com-access_log common
   /VirtualHost
  
  
   # !-- !!! added workers file for apache tomcat integration  --
   JkWorkersFile d:\Apache\Tomcat4.1\conf\jk\workers.properties
   JkLogFile d:\Apache\Tomcat4.1\logs\mod_jk.log
   Include d:/Apache/Tomcat4.1/conf/auto/mod_jk.conf
  
  
   everything appears to be working normally but why the error???
 
 
  -
  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]
 


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




RE: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80

2003-02-03 Thread Tref Gare
NameVirtualHost lets you use a single ip address as multiple hosts

See these apache docs for details

http://httpd.apache.org/docs/vhosts/

cheers

Tref
--
Tref Gare
Development Consultant
Areeba
Level 19/114 William St, Melbourne VIC 3000
email: [EMAIL PROTECTED]
phone: +61 3 9642 5553
fax: +61 3 9642 1335
website: http://www.areeba.com.au
--
This email is intended only for the use of the individual or entity
named above and contains information that is confidential. No
confidentiality is waived or lost by any mis-transmission. If you
received this correspondence in error, please notify the sender and
immediately delete it from your system. You must not disclose, copy or
rely on any part of this correspondence if you are not the intended
recipient. Any communication directed to clients via this message is
subject to our Agreement and relevant Project Schedule. Any information
that is transmitted via email which may offend may have been sent
without knowledge or the consent of Areeba.
--

-Original Message-
From: Oscar Carrillo [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, 4 February 2003 3:27 AM
To: Tomcat Users List
Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost
www.abc.com:80

I'm not very familiar with Apache configuration, but shouldn't your *
be replaced with the ServerName. I'm not sure what NameVirtualHost 
should be set at. I have mine set to the servername of the only
servername 
I have.

Oscar


On Mon, 3 Feb 2003, chris schild wrote:

 Sorry, here is the error from apache.exe -t
 
 VirtualHost www.zcompany.com:80 overlaps with VirtualHost
www.abc.com:80,
 the first has precedence, perhaps you need a NameVirtualHost directive
 
 - Original Message -
 
 From: Oscar Carrillo [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, February 03, 2003 8:59 AM
 Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost
 www.abc.com:80
 
 
  What error?
 
  Oscar
 
  On Mon, 3 Feb 2003, tomcat guy wrote:
 
   Has anyone come across  this warning?  Any guesses as to what is
wrong?
  
   Here is the httpd.conf definition:
  
   NameVirtualHost *
  
   VirtualHost *
   ServerName cde.com
   ServerAlias www.cde.com
   DocumentRoot /apache/Tomcat4.1/CDE
   JkMount /*.jsp ajp13
   JkMount /servlet/* ajp13
   ErrorLog logs/cde.com-error_log
   CustomLog logs/cde.com-access_log common
   /VirtualHost
  
   VirtualHost *
   ServerName qv.com
   ServerAlias www.qv.com
   DocumentRoot /apache/Tomcat4.1/QV
   JkMount /*.jsp ajp13
   JkMount /servlet/* ajp13
   ErrorLog logs/qv.com-error_log
   CustomLog logs/qv.com-access_log common
   /VirtualHost
  
   VirtualHost *
   ServerName abc.com
   ServerAlias www.abc.com
   DocumentRoot /apache/Tomcat4.1/AMW
   JkMount /*.jsp ajp13
   JkMount /servlet/* ajp13
   ErrorLog logs/abc.com-error_log
   CustomLog logs/abc.com-access_log common
   /VirtualHost
  
  
   # !-- !!! added workers file for apache tomcat integration  --
   JkWorkersFile d:\Apache\Tomcat4.1\conf\jk\workers.properties
   JkLogFile d:\Apache\Tomcat4.1\logs\mod_jk.log
   Include d:/Apache/Tomcat4.1/conf/auto/mod_jk.conf
  
  
   everything appears to be working normally but why the error???
 
 
 
-
  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]
 


-
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: virtualHost + jk2

2003-01-31 Thread tomcat guy
How do you define the virtual hosts with jk2?
Below is the httpd.conf for the Apache2 side (copied from previous
connection - jk) .
What do I change, add or delete?
I commented out the jk(s) and I get a Forbidden page saying you don't have
permission to access ..

VirtualHost *
ServerName www.qualitycompany.com
ServerAlias qualitycompany.com
DocumentRoot /apache/Tomcat4.1/QV
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
ErrorLog logs/qualitycompany.com-error_log
CustomLog logs/qualitycompany.com-access_log common
/VirtualHost

# !-- !!! added workers file for apache tomcat integration  --
JkWorkersFile c:\Apache\Tomcat4.1\conf\jk\workers.properties
JkLogFile c:\Apache\Tomcat4.1\logs\mod_jk.log
Include c:/Apache/Tomcat4.1/conf/auto/mod_jk.conf

Do I need to modify anything for server.xml?


- Original Message -
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, January 30, 2003 6:41 PM
Subject: virtualHost + jk2


 I made the move to the jk2 connector from jk.

 Would anyone be able to tell me how to define VirtualHosts for
httpd.conf
  server.xml.

 I added the configuration after getting localhost  localhost:8080 to work
 properly.  When I added the VirtualHosts to httpd.conf  server.xml (same
as
 the jk connector) everything went to crap.

 Could someone give me a brief example setting up 1 virtualHost???

 Nothing in the docs talks about VirtualHosts.

 peace,c


 -
 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]




virtualHost + jk2

2003-01-30 Thread chris schild
I made the move to the jk2 connector from jk.

Would anyone be able to tell me how to define VirtualHosts for httpd.conf
 server.xml.

I added the configuration after getting localhost  localhost:8080 to work
properly.  When I added the VirtualHosts to httpd.conf  server.xml (same as
the jk connector) everything went to crap.

Could someone give me a brief example setting up 1 virtualHost???

Nothing in the docs talks about VirtualHosts.

peace,c


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




Help with VirtualHost and multiple webapps

2003-01-17 Thread Pascal Robert
Hi list,

I'm trying to deploy multiple webapps inside one virtual host with the WARP
connector (mod_webapp, Tomcat 4.06, Apache 1.3.27, OS X 10.2.3 Server).

I have one directory (outside Tomcat's tree) with 3 apps:

- ROOT
- mobile
- utilitaires

The only app I can reach is ROOT, I get 404's (from Tomcat) for the two
other apps.  I don't see errors in the application's log, and catalina.out
displays 'WarpEngine[Apache]: Mapping request' at every access I try.  So it
looks line a URL mapping problem but I don't see why.

Apache's conf:

---
IfModule mod_webapp.c
WebAppConnection tomcat_warp warp localhost:8008
/IfModule

WebAppDeploy mobile tomcat_warp /mobile
WebAppDeploy ROOT tomcat_warp /
WebAppDeploy utilitaires tomcat_warp /utilitaires
Alias /mobile /path/to/webapps/mobile
Alias /utilitaires /path/to/webapps/utilitaires
---


Tomcat's conf/server.xml:

---
Host name=jsp.acaiq.com debug=3
appBase=/path/to/webapps
unpackWARs=true

Context path= docBase=ROOT debug=0 /
Context path=/mobile docBase=mobile debug=3 /
Context path=/utilitaires docBase=utilitaires debug=0 /

---


Filesystem:

---
% ls -l /path/to/webapps

total 0
drwxr-xr-x  3 root  admin  102 Jan 17 08:59 ROOT
drwxr-xr-x  4 root  admin  136 Jan 17 07:46 mobile
drwxr-xr-x  3 root  admin  102 Jan 17 07:50 utilitaires
---


Last lines of the log file:

---
2003-01-17 09:00:40 StandardContext[/mobile]: Posting standard context
attributes
2003-01-17 09:00:40 StandardWrapper[/mobile:default]: Loading container
servlet default
2003-01-17 09:00:40 StandardWrapper[/mobile:invoker]: Loading container
servlet invoker
2003-01-17 09:00:40 StandardContext[/mobile]: Starting completed
---

When I make a request for /mobile, this is the last line in catalina.out.






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




virtualhost-based root context?

2002-12-09 Thread Thomas Sandor
hi all,

does anyone got an idea, how to set up the ROOT context for each of my
virtualhost? like in apache DocumentRoot, so when invoking the URL, each /
goes to a specified HTML directory. But in case of a dynamic app server I
have only /xyz/ contexts, but when invoking a domain e.g.: somewhat.com and
I redirect it to somewhat.com/somewhat looks awfull.

so I don't know if any app server supports a virtualhost based context
distribution, so I can tell which context to use for /?

any help is warmly welcomed.

cheers,
Thomas


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




virtualhost based root context??

2002-12-09 Thread Thomas Sandor
hi all,

does anyone got an idea, how to set up the ROOT context for each of my
virtualhost? like in apache DocumentRoot, so when invoking the URL, each /
goes to a specified HTML directory. But in case of a dynamic app server I
have only /xyz/ contexts, but when invoking a domain e.g.: somewhat.com and
I redirect it to somewhat.com/somewhat looks awfull.

so I don't know if any app server supports a virtualhost based context
distribution, so I can tell which context to use for /?

any help is warmly welcomed.

cheers,
Thomas


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




RE: virtualhost based root context??

2002-12-09 Thread Reynir Hübner
If I understand you correctly you want create a virtual host definition in server.xml

It's done this way : 

Host name=www.something.com debug=0  
  Context path= docBase=C:\webappbase\ reloadable=true/
/Host

Hope it helps
-reynir




 -Original Message-
 From: Thomas Sandor [mailto:[EMAIL PROTECTED]] 
 Sent: 9. desember 2002 10:01
 To: [EMAIL PROTECTED]
 Subject: virtualhost based root context??
 
 
 hi all,
 
 does anyone got an idea, how to set up the ROOT context for 
 each of my virtualhost? like in apache DocumentRoot, so when 
 invoking the URL, each / goes to a specified HTML 
 directory. But in case of a dynamic app server I have only 
 /xyz/ contexts, but when invoking a domain e.g.: somewhat.com 
 and I redirect it to somewhat.com/somewhat looks awfull.
 
 so I don't know if any app server supports a virtualhost 
 based context distribution, so I can tell which context to 
 use for /?
 
 any help is warmly welcomed.
 
 cheers,
 Thomas
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

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




VirtualHost workDir

2002-12-04 Thread Maxime Colas des Francs
Hi,

I attempt to use Virtual Host with tomcat 4.1.12
in server.xml, each host and context are defined like this :

[...]
Host name=www.foo.com debug=0 appBase=/var/webapps/www.foo.com
workDir=/var/webapps/www.foo.com/work ... /
Context path= docBase=webapp ... /
[...]

/var/webapps/www.foo.com/webapp contains :
index.jsp
foo/test.jsp

it works .

but in workDir, after automatic jsp compilation i can find this organisation
:

work/webapp
work/_/index_jsp.java
work/_/index_jsp.class
work/_/foo/test_jsp.java
work/_/foo/test_jsp.class

directory webapp is empty, and all application is in directory '_' .. is it
normal ?

I want to use ant jspc task, where to place the generated files (destdir
option) ?

thks !



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




Re: Alias vs VirtualHost - which is better for me ?

2002-11-06 Thread Matt Fury
The date of your emails are all out of wack. I hope
this isn't done on purpose to push emails forward! :-D


--- [EMAIL PROTECTED] wrote:
 Hi all.
 Both options work for me.
 Which is the better solution in terms of performance
 ?
 
 --
 To unsubscribe, e-mail:  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 


=

int myName() {
  cout  -Matt Fury \n;
  return 0;
}


__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Alias vs VirtualHost - which is better for me ?

2002-11-06 Thread Ralph Einfeldt
What is the problem with that mail ?

The mail you are referencing has been sent to the list
roughly a week ago. (I received it through the list 
last wednesday)

 -Original Message-
 From: Matt Fury [mailto:mattfury88;yahoo.com]
 Sent: Wednesday, November 06, 2002 5:11 PM
 To: Tomcat Users List
 Subject: Re: Alias vs VirtualHost - which is better for me ?
 
 
 The date of your emails are all out of wack. I hope
 this isn't done on purpose to push emails forward! :-D
 
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Alias vs VirtualHost - which is better for me ?

2002-10-31 Thread Cox, Charlie
depends on your goal. If both hostnames are doing the same things in all
cases you should use Alias to prevent multiple copies of everything from
running. If you have different contexts, logfiles, etc for each then you
should use multiple host elements.

Charlie

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:achana;saysit.com]
 Sent: Friday, March 12, 2004 9:33 PM
 To: [EMAIL PROTECTED]
 Subject: Alias vs VirtualHost - which is better for me ?
 
 
 Hi all.
 Both options work for me.
 Which is the better solution in terms of performance ?
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Alias vs VirtualHost - Thanks, Charles.

2002-10-31 Thread achana
Cox, Charlie wrote:
 
 depends on your goal. If both hostnames are doing the same things in all
 cases you should use Alias to prevent multiple copies of everything from
 running. If you have different contexts, logfiles, etc for each then you
 should use multiple host elements.
 
 Charlie
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:achana;saysit.com]
  Sent: Friday, March 12, 2004 9:33 PM
  To: [EMAIL PROTECTED]
  Subject: Alias vs VirtualHost - which is better for me ?
 
 
  Hi all.
  Both options work for me.
  Which is the better solution in terms of performance ?
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
 
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Alias vs VirtualHost - which is better for me ?

2002-10-30 Thread achana
Hi all.
Both options work for me.
Which is the better solution in terms of performance ?

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Alias vs VirtualHost - which is better for me ?

2002-10-30 Thread achana
Content-Class: urn:content-classes:message
Received: from nagoya.betaversion.org ([192.18.49.131]) by hume.tsdinc.steitz.com with 
Microsoft SMTPSVC(5.0.2195.5329); Wed, 30 Oct 2002 13:28:47 -0500
Received: (qmail 16865 invoked by uid 97); 30 Oct 2002 18:32:12 -
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: mailto:tomcat-user-unsubscribe;jakarta.apache.org
List-Subscribe: mailto:tomcat-user-subscribe;jakarta.apache.org
List-Help: mailto:tomcat-user-help;jakarta.apache.org
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.
List-Post: mailto:tomcat-user;jakarta.apache.org
List-Id: Tomcat Users List tomcat-user.jakarta.apache.org
Reply-To: Tomcat Users List [EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
Received: (qmail 16814 invoked by uid 98); 30 Oct 2002 18:32:11 -
X-Antivirus: nagoya (v4218 created Aug 14 2002)
Sender: [EMAIL PROTECTED]
Message-ID: [EMAIL PROTECTED]
Date: Sat, 13 Mar 2004 13:32:38 +1100
From: [EMAIL PROTECTED]
Organization: achana
X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: [EMAIL PROTECTED]
Subject: Alias vs VirtualHost - which is better for me ?
Content-Type: text/plain;
charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 30 Oct 2002 18:28:48.0864 (UTC) FILETIME=[30700600:01C28042]

Hi all.
Both options work for me.
Which is the better solution in terms of performance ?

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




virtualhost - tomcat4.1.9

2002-09-04 Thread Richard Chamberlain

Hello,

I posted this earlier problem earlier in my migration post but I've got
some more details so I thought I'd post them.

To recap I'm trying to get a webapp (well a simple set of jsp pages)
running in Tomcat in a virtualhost. The same set of files were all ok
in resin.

I'm using the admin tool to set up a host (www.sunsetandlabrea.com)
with an application base of /home/richardc/

I then create a context with a document base of
/home/richardc/public_html/ and leave everything else as default.

I commit changes and then I get a 404 error at
http://www.sunsetandlabrea.com:8080/index.jsp

I stop and restart tomcat and then I get a No Context configured to
process this request message and in admin it's created two new contexts
(/public_html and /secure_html).

Any suggestions of how I can get this to work would be greatly
appreciated.

I've stuck the log at the bottom of this message.

Thanks again,

Richard

2002-09-04 15:14:30 WebappLoader[/]: Deploying class repositories to
work directory
/usr/share/tomcat4.1.9/work/Standalone/www.sunsetandlabrea.com/_
2002-09-04 15:14:30 WebappLoader[/]: Deploy class files
/WEB-INF/classes to /home/richardc/public_html/WEB-INF/classes
2002-09-04 15:14:30 WebappLoader[/]: Deploy JAR /WEB-INF/lib/cos.jar to
/home/richardc/public_html/WEB-INF/lib/cos.jar
2002-09-04 15:14:30 WebappLoader[/]: Deploy JAR
/WEB-INF/lib/velocity-dep-1.3.1-rc2.jar to
/home/richardc/public_html/WEB-INF/lib/velocity-dep-1.3.1-rc2.jar
2002-09-04 15:14:31 StandardManager[/]: Seeding random number generator
class java.security.SecureRandom
2002-09-04 15:14:31 StandardManager[/]: Seeding of random number
generator has been completed
2002-09-04 15:14:31 StandardWrapper[/:default]: Loading container
servlet default
2002-09-04 15:14:31 default: init
2002-09-04 15:14:32 StandardWrapper[/:invoker]: Loading container
servlet invoker
2002-09-04 15:14:32 invoker: init
2002-09-04 15:14:32 jsp: init
2002-09-04 15:14:32 HostConfig[www.sunsetandlabrea.com]: Deploying web
application directory public_html
2002-09-04 15:14:32 StandardHost[www.sunsetandlabrea.com]: Installing
web application at context path /public_html from URL
file:/home/richardc/public_html
2002-09-04 15:14:32 WebappLoader[/public_html]: Deploying class
repositories to work directory
/usr/share/tomcat4.1.9/work/Standalone/www.sunsetandlabrea.com/public_html
2002-09-04 15:14:32 WebappLoader[/public_html]: Deploy class files
/WEB-INF/classes to /home/richardc/public_html/WEB-INF/classes
2002-09-04 15:14:32 WebappLoader[/public_html]: Deploy JAR
/WEB-INF/lib/cos.jar to /home/richardc/public_html/WEB-INF/lib/cos.jar
2002-09-04 15:14:32 WebappLoader[/public_html]: Deploy JAR
/WEB-INF/lib/velocity-dep-1.3.1-rc2.jar to
/home/richardc/public_html/WEB-INF/lib/velocity-dep-1.3.1-rc2.jar
2002-09-04 15:14:32 StandardManager[/public_html]: Seeding random
number generator class java.security.SecureRandom
2002-09-04 15:14:32 StandardManager[/public_html]: Seeding of random
number generator has been completed
2002-09-04 15:14:32 StandardWrapper[/public_html:default]: Loading
container servlet default
2002-09-04 15:14:32 default: init
2002-09-04 15:14:32 StandardWrapper[/public_html:invoker]: Loading
container servlet invoker
2002-09-04 15:14:32 invoker: init
2002-09-04 15:14:32 jsp: init
2002-09-04 15:14:32 HostConfig[www.sunsetandlabrea.com]: Deploying web
application directory secure_html
2002-09-04 15:14:32 StandardHost[www.sunsetandlabrea.com]: Installing
web application at context path /secure_html from URL
file:/home/richardc/secure_html
2002-09-04 15:14:32 WebappLoader[/secure_html]: Deploying class
repositories to work directory
/usr/share/tomcat4.1.9/work/Standalone/www.sunsetandlabrea.com/secure_html
2002-09-04 15:14:33 ContextConfig[/secure_html]: Missing application
web.xml, using defaults only
2002-09-04 15:14:33 StandardManager[/secure_html]: Seeding random
number generator class java.security.SecureRandom
2002-09-04 15:14:33 StandardManager[/secure_html]: Seeding of random
number generator has been completed
2002-09-04 15:14:33 StandardWrapper[/secure_html:default]: Loading
container servlet default
2002-09-04 15:14:33 default: init
2002-09-04 15:14:33 StandardWrapper[/secure_html:invoker]: Loading
container servlet invoker
2002-09-04 15:14:33 invoker: init
2002-09-04 15:14:33 jsp: init
2002-09-04 15:22:07 StandardHost[www.sunsetandlabrea.com]: MAPPING
configuration error for request URI /index.jsp
-- 
http://fastmail.fm/ - The professional email service

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




Re: virtualhost - tomcat4.1.9

2002-09-04 Thread Richard Chamberlain

Hello again,

I'll answer my own question just in case someone else comes unstuck with 
the same problem.

It appears if you create a context using the admin tool and leave the 
path empty when it creates the path it adds a path='/' which is not 
correct. Deleting the / manually solves it.

Cheers,

Richard

On Wednesday, September 4, 2002, at 02:30 PM, Richard Chamberlain wrote:

 Hello,

 I posted this earlier problem earlier in my migration post but I've got
 some more details so I thought I'd post them.

 To recap I'm trying to get a webapp (well a simple set of jsp pages)
 running in Tomcat in a virtualhost. The same set of files were all ok
 in resin.

 I'm using the admin tool to set up a host (www.sunsetandlabrea.com)
 with an application base of /home/richardc/

 I then create a context with a document base of
 /home/richardc/public_html/ and leave everything else as default.

 I commit changes and then I get a 404 error at
 http://www.sunsetandlabrea.com:8080/index.jsp

 I stop and restart tomcat and then I get a No Context configured to
 process this request message and in admin it's created two new contexts
 (/public_html and /secure_html).

 Any suggestions of how I can get this to work would be greatly
 appreciated.

 I've stuck the log at the bottom of this message.

 Thanks again,

 Richard


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




tomcat virtualhost 404 error

2002-07-29 Thread Albert Csaba

I have Tomcat4.0.4 with mod_jk running. I'm not sure if it's setup correctly. I'm 
trying to test it with an example found on the net, 
uploaded to a virtualhost, but I'm getting a Apache Tomcat 404 error.

What else do I have to set for the test.jsp to be found there?

Thank you,
Csaba




This is in my server.xml file for that virtualhost:

Host name=www.vhost.xx
  Context path= docBase=/home/sites/www.vhost.xx/web debug=0/
  Context path=/examples 
   docBase=/home/sites/www.vhost.xx/web/examples 
   debug=0 
 reloadable=true /
  Context path=/test docBase=/home/sites/www.vhost.xx/web/test debug=0
   reloadable=true /

  
  Logger className=org.apache.catalina.logger.FileLogger
   prefix=jsoft_examples_log. suffix=.txt
 timestamp=true/
Ejb   name=ejb/EmplRecord type=Entity
   home=com.wombat.empl.EmployeeRecordHome
 remote=com.wombat.empl.EmployeeRecord/ 
Environment name=maxExemptions type=java.lang.Integer
value=15/
Parameter name=context.param.name value=context.param.value
   override=false/
  
  Resource name=jdbc/jSoft auth=SERVLET type=javax.sql.DataSource/
  ResourceParams name=jdbc/jSoft
 
  parameternameuser/namevalueuser/value/parameter
 
  parameternamepassword/namevaluepw/value/parameter
  
parameternamedriverClassName/namevalueorg.gjt.mm.mysql.Driver/value/parameter
  
parameternamedriverName/namevaluejdbc:mysql://localhost//value/parameter
  
  /ResourceParams
  Resource name=mail/Session auth=Container
  type=javax.mail.Session/
ResourceParams name=mail/Session
  parameter
namemail.smtp.host/name
valuelocalhost/value
  /parameter
/ResourceParams
  
 Logger className=org.apache.catalina.logger.FileLogger
   prefix=jsoft_examples_log. suffix=.txt
 timestamp=true/
Ejb   name=ejb/EmplRecord type=Entity
   home=com.wombat.empl.EmployeeRecordHome
 remote=com.wombat.empl.EmployeeRecord/ 
Environment name=maxExemptions type=java.lang.Integer
value=15/
Parameter name=context.param.name value=context.param.value
   override=false/ 
 Resource name=jdbc/jSoft auth=SERVLET type=javax.sql.DataSource/
  
  ResourceParams name=jdbc/jSoft
 
  parameternameuser/namevalueuser/value/parameter
 
  parameternamepassword/namevaluepw/value/parameter

  
parameternamedriverClassName/namevalueorg.gjt.mm.mysql.Driver/value/parameter

  
parameternamedriverName/namevaluejdbc:mysql://localhost//value/parameter
   /ResourceParams
  
  
Resource name=mail/Session auth=Container
  type=javax.mail.Session/
ResourceParams name=mail/Session
  parameter
namemail.smtp.host/name
valuelocalhost/value
  /parameter
/ResourceParams
  

  
/Host

And that's in my httpd.conf:

LoadModule jk_module  /usr/lib/apache/mod_jk.so

AddModule mod_jk.c

# Configure mod_jk
#
JkWorkersFile /home/jakarta-tomcat-4.0.4/conf/jk/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLeveldebug


JkMount /examples ajp13
JkMount /examples/* ajp13

JkMount /jk ajp13
JkMount /jk/* ajp13

JkMount /cocoon ajp13
JkMount /cocoon/* ajp13



VirtualHost xxx.xxx.xxx.xxx
ServerName www.vhost.xx
ServerAdmin admin
DocumentRoot /home/sites/site4/web
ServerAlias vhost.xx
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

JkMount /examples ajp13
JkMount /examples/* ajp13

JkMount /jk ajp13
JkMount /jk/* ajp13

JkMount /cocoon ajp13
JkMount /cocoon/* ajp13


RewriteEngine on
RewriteCond %{HTTP_HOST}!^212.67.192.29(:80)?$
RewriteCond %{HTTP_HOST}!^www.vhost.xx(:80)?$
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site4/users/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/site4/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
/VirtualHost





RE: tomcat virtualhost 404 error

2002-07-29 Thread Andrew Conrad

Are you closing your VirtualHost x.x.x.x tage
/VirtualHost

Also, can you get to the page from a remote machine at
http://www.vhost.xx:8080/ ???  If that works, then you should know it's
a Apache mod_jk issue.

- Andrew

 -Original Message-
 From: Albert Csaba [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, July 29, 2002 7:24 AM
 To: Tomcat Users List
 Subject: tomcat virtualhost 404 error
 
 
 I have Tomcat4.0.4 with mod_jk running. I'm not sure if it's 
 setup correctly. I'm trying to test it with an example found 
 on the net, 
 uploaded to a virtualhost, but I'm getting a Apache Tomcat 404 error.
 
 What else do I have to set for the test.jsp to be found there?
 
 Thank you,
 Csaba
 
 
 
 
 This is in my server.xml file for that virtualhost:
 
 Host name=www.vhost.xx
   Context path= docBase=/home/sites/www.vhost.xx/web 
 debug=0/
   Context path=/examples 
docBase=/home/sites/www.vhost.xx/web/examples 
debug=0 
  reloadable=true /
   Context path=/test 
 docBase=/home/sites/www.vhost.xx/web/test debug=0
reloadable=true /
 
   
   Logger 
 className=org.apache.catalina.logger.FileLogger
prefix=jsoft_examples_log. suffix=.txt
  timestamp=true/
 Ejb   name=ejb/EmplRecord type=Entity
home=com.wombat.empl.EmployeeRecordHome
  remote=com.wombat.empl.EmployeeRecord/ 
 Environment name=maxExemptions 
 type=java.lang.Integer
 value=15/
 Parameter name=context.param.name 
 value=context.param.value
override=false/
   
   Resource name=jdbc/jSoft auth=SERVLET 
 type=javax.sql.DataSource/
   ResourceParams name=jdbc/jSoft
  
   parameternameuser/namevalueuser/value/parameter
  
   parameternamepassword/namevaluepw/value/parameter
   
 parameternamedriverClassName/namevalueorg.gjt.mm.mysql
 .Driver/value/parameter
   
 parameternamedriverName/namevaluejdbc:mysql://localhos
 t//value/parameter
   
   /ResourceParams
   Resource name=mail/Session auth=Container
   type=javax.mail.Session/
 ResourceParams name=mail/Session
   parameter
 namemail.smtp.host/name
 valuelocalhost/value
   /parameter
 /ResourceParams
   
  Logger 
 className=org.apache.catalina.logger.FileLogger
prefix=jsoft_examples_log. suffix=.txt
  timestamp=true/
 Ejb   name=ejb/EmplRecord type=Entity
home=com.wombat.empl.EmployeeRecordHome
  remote=com.wombat.empl.EmployeeRecord/ 
 Environment name=maxExemptions 
 type=java.lang.Integer
 value=15/
 Parameter name=context.param.name 
 value=context.param.value
override=false/ 
  Resource name=jdbc/jSoft auth=SERVLET 
 type=javax.sql.DataSource/
   
   ResourceParams name=jdbc/jSoft
  
   parameternameuser/namevalueuser/value/parameter
  
   parameternamepassword/namevaluepw/value/parameter
 
   
 parameternamedriverClassName/namevalueorg.gjt.mm.mysql
 .Driver/value/parameter
 
   
 parameternamedriverName/namevaluejdbc:mysql://localhos
 t//value/parameter
/ResourceParams
   
   
 Resource name=mail/Session auth=Container
   type=javax.mail.Session/
 ResourceParams name=mail/Session
   parameter
 namemail.smtp.host/name
 valuelocalhost/value
   /parameter
 /ResourceParams
   
 
   
 /Host
 
 And that's in my httpd.conf:
 
 LoadModule jk_module  /usr/lib/apache/mod_jk.so
 
 AddModule mod_jk.c
 
 # Configure mod_jk
 #
 JkWorkersFile /home/jakarta-tomcat-4.0.4/conf/jk/workers.properties
 JkLogFile /var/log/httpd/mod_jk.log
 JkLogLeveldebug
 
 
 JkMount /examples ajp13
 JkMount /examples/* ajp13
 
 JkMount /jk ajp13
 JkMount /jk/* ajp13
 
 JkMount /cocoon ajp13
 JkMount /cocoon/* ajp13
 
 
 
 VirtualHost xxx.xxx.xxx.xxx
 ServerName www.vhost.xx
 ServerAdmin admin
 DocumentRoot /home/sites/site4/web
 ServerAlias vhost.xx
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13
 
 JkMount /examples ajp13
 JkMount /examples/* ajp13
 
 JkMount /jk ajp13
 JkMount /jk/* ajp13
 
 JkMount /cocoon ajp13
 JkMount /cocoon/* ajp13
 
 
 RewriteEngine on
 RewriteCond %{HTTP_HOST}!^212.67.192.29(:80)?$
 RewriteCond %{HTTP_HOST}!^www.vhost.xx(:80

RE:setting virtualhost .jsp path (was: tomcat virtualhost 404 error)

2002-07-29 Thread Albert Csaba


Yes, I can see a page telling me that the installation of tomcat was 
successfull. But where do I have to define the virtualhosts? I guess 
the problem is that when I'm trying to access 
http://www.vhost.xx/main.jsp, it doesn't actually gets the page 
from /home/sites/www.vhost.xx/web/main.jsp. 
I've read several documents for configuring tomcat for virtualhosts, 
but it's still not working.

Any help is appreciated,
thank you, 

Csaba




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




VirtualHost

2002-07-03 Thread busch

Hi,

I want like to do some nasty VirtualHosting which I can't get to run.

I have written a web-application which gets it's internal configuration 
values out of an XML-File we specified. So, for different 
applications, I can use the same /WEB-INF/classes for all my 
applications, the only thing that changes is a parameter in the 
accompanying web.xml

So I made a directory structure like this:

/opt/myshop/lib/shop/classes/com/bla/
cd /usr/local/tomcat/webapp
mkdir host1
cd host1
mkdir WEB-INF
cd WEB-INF
ln -s /opt/myshop/lib/shop/classes/ ./classes

and the same for host2, host3 and so on... so all /classes are 
symbolic linx to the same Classpath. I need this so every 
application really loads its own customized set of classes.

Now I have two virtual-hosts in Apache:

VirtualHost my.domain.com
   JkMount /host1/* ajp13
/VirtualHost

VirtualHost my.second.com
   JkMount /host2/* ajp13
/VirtualHost

This would work fine. But now I want that both Mount-points are 
called host rather than hostN

This would mean I have just to go to my webapp directory and 
mkdir host
put my symbolic link into the WEB-INF and edit the web.xml so it 
contains a Host - Tags around each Context ... restarting 
tomcat and apache and calling to /my.domain.com/shop/ will start 
the appropriate Web-application and I can see that it initializes, but 
as soon as that application has to load other classes, everything 
fails. I didn't had this problem without the Host Tag around...

Any Ideas would be highly appreciated !!!

Regards
Danny


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




AW: VirtualHost

2002-07-03 Thread Ralph Einfeldt

- Do you use mod_jk or mod_jk2 ?
- Which tomcat version do you use ?
- What error do you observe ?

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 3. Juli 2002 17:44
 An: [EMAIL PROTECTED]
 Betreff: VirtualHost
 
 This would mean I have just to go to my webapp directory and 
 mkdir host
 put my symbolic link into the WEB-INF and edit the web.xml so it 
 contains a Host - Tags around each Context ... restarting 
 tomcat and apache and calling to /my.domain.com/shop/ will start 
 the appropriate Web-application and I can see that it 
 initializes, but as soon as that application has to load other 
 classes, everything fails. I didn't had this problem without the 
 Host Tag around...
 

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




Re: AW: VirtualHost

2002-07-03 Thread busch

I am using mod_jk, tomcat 3.3

Nevertheless, I found the error...

I was trying to set up an Enhydra (www.enhydra.org) based
application server with Tomcat and Apache. Enhydra will load
servlet-classes depending on the URL-suffix passed to the Enhydra
super-servlet.

I jk-mounted the following JkMount /shop/*, so that all pages which
are under my /shop/ hierarchie would be loaded, but not those in
other hierarchies.

As soon as I added the path=/shop into the Context, even those
pages outside the shop hierarchy are loaded as now tomcat
doesn't seem to append the first /shop to the request-url and so,
it works.

Even after days reading the documentation, I am unsure what the
interdependencies between the name of the JkMount-point, the
webapps-directory and the Context-path are, and this url-mapping
is also puzzling... with trial-and-error I came to my solution, but
that's not very neato.

Regards
Danny





On 3 Jul 2002, at 17:48, Ralph Einfeldt wrote:

 - Do you use mod_jk or mod_jk2 ?
 - Which tomcat version do you use ?
 - What error do you observe ?

  -Ursprüngliche Nachricht-
  Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Gesendet: Mittwoch, 3. Juli 2002 17:44
  An: [EMAIL PROTECTED]
  Betreff: VirtualHost
 
  This would mean I have just to go to my webapp directory and
  mkdir host
  put my symbolic link into the WEB-INF and edit the web.xml so it
  contains a Host - Tags around each Context ... restarting
  tomcat and apache and calling to /my.domain.com/shop/ will start
  the appropriate Web-application and I can see that it
  initializes, but as soon as that application has to load other
  classes, everything fails. I didn't had this problem without the
  Host Tag around...
 

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




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




RE: Config Problem : VirtualHost, mod_rewrite and mod_jk

2002-01-30 Thread Mike Roberts

Regarding mod_rewrite and Tomcat, has this issue been addressed in Tomcat 4
/ Servlet 2.3? If so, please could someone let me know what the behaviour is
for both mod_jk and mod_webapp as connectors?

Many thanks,

Mike

--
Mike Roberts
Architect
DigitalRum
mailto:[EMAIL PROTECTED]




From: Larry Isaacs 
Subject: RE: Config Problem : VirtualHost, mod_rewrite and mod_jk 
Date: Wed, 05 Dec 2001 06:12:36 -0800 




Hi Geir,

Concerning mod_rewrite, there was a lot of discussion about
what mod_jk should do about the Servlet 2.2's requirement that
HttpServletRequest.getRequestURI() return a URI that *remains*
encoded.  So that it *remains* encoded, the mod_jk in Tomcat 3.2.3
forwards the unparsed request to Tomcat.  This prevents
mod_rewrite from having an effect since it modifies the
parsed request.

To bring mod_rewrite back online, mod_jk in Tomcat 3.2.4
forwards a re-encoded version of the parsed request
(sacrificing remains in favor of functionality).

In Tomcat 3.3, this is configurable, though this hasn't
yet made it into the documentation. :(

In the mod_jk configuration file, you can set the following
options to control which request is forwarded to Tomcat.

JkOptions ForwardURICompat+

forwards the parsed URI as is.  Tomcat 3.3 will re-encode
the request for getRequestURI().  This is the default
behavior.

JkOptions ForwardURICompatUnparsed+

forwards the unparsed URI and Tomcat 3.3 will return
this string unmodified for getRequestURI().  This best
matches the spec, but breaks mod_rewrite.  This matches
Tomcat 3.2.3's mod_jk behavior.

JkOptions ForwardURIEscaped+

forwards the re-encoded parsed URI and Tomcat 3.3 will
return this string unmodified for getRequestUR().  This
matches Tomcat 3.2.4's mod_jk behavior.

I'll try to add some documentation concerning this in the
Tomcat 3.3 release.

Hope this helps.

Cheers,
Larry

 -Original Message-
 From: Geir Magnusson Jr. [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 04, 2001 9:17 PM
 To: Tomcat Users List
 Subject: Config Problem : VirtualHost, mod_rewrite and mod_jk
 
 
 I am looking for some tips or advice on a configuration problem :
 
 I wish to configure Apache with virtual hosts, and along with some URL
 rewriting, and use mod_jk under httpd 1.3.x And Tomcat 3.2.3
 
 I have successfully configured mod_jk and two Hosts in tomcat's
 server.xml, and have verified that mod_jk is working, and the 
 Hosts are
 properly mapping requests to two separate webapps.  So far, so good.
 
 The problem comes in with mod_rewrite.  This is an update 
 from mod_jserv,
 where 
 
   Action action1  /servlet/com.foo.FooServlet
 
   LocationMatch /*.html
 SetHandler action1
   /LocationMatch
 
 Was used, and this worked fine.
 
 When I switched to mod_jk and VirtualHosts, this resulted in 
 recursion,
 constructing a huge URL that Apache coughed up.
 
 I then switched to mod_rewrite, and was able to (easily) 
 construct a rewrite
 rule to do the same thing.  I used the [P] flag to force it 
 to the proxy.
 
 The problem is that mod_jk never 'picked up' the rewritten URL.
 
 I have searched for some information on this, but to no 
 avail.  There were
 references to putting the LoadModule for mod_jk before the 
 LoadModule for
 mod_rewrite, and I have tried that (and reverse) and other 
 orderings of
 mod_jk directives, rewrite directives, in the VirtualHost, 
 outside of the
 VirtualHost etc.
 
 Any insight would be greatly appreciated...
 
 Thanks in advance.
 
 geir
 
 -- 
 Geir Magnusson Jr.   [EMAIL PROTECTED]
 System and Software Consulting
 You're going to end up getting pissed at your software
 anyway, so you might as well not pay for it. Try Open Source.
 
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Apache / Tomcat 4.01/ Virtualhost

2002-01-22 Thread Ashish kulkarni

Hi,
I have done configured virtual host with apache 1.3.22
and tomcat 4.0.1 , on windows 2000 with mod_jk module,
here are the steps, hope it helps

#***
1) Tomcat 4.0 :
- Be carefull to do not install TC4 in a path with
spaces   !
otherwise you should use the 8.3 directory names to
configure TC
- In the server/lib subdirectory of TC4 add the
ajp.jar and the
tomcat-util.jar
- in the conf subdirectory copy the workers.properties
from a TC 3.2. Edit
it and fill the lines :

workers.tomcat_home=C:\Programs\Tomcat4.0
workers.java_home=C:\Programs\jdk1.3.1

with your own configuration.
- Edit the server.xml and add the AJP connector like
this :

!-- Connector for AJP 1.3 --
Connector
className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5
maxProcessors=75
   acceptCount=10 debug=0
connectionTimeout=0 /

Now the tomcat server is ready

2) Apache
- firstly copy the mod_jk.dll from the TC3 distrib in
the apache modules
subdirectory
- Configure Apache
Contrary to TC3, TC4 do not generate the Apache
configuration. So you should
do it yourself.

At the end of your httpd.conf file you should add (and
adapt)

# TC 4.0 settings

#
# The following line instructs Apache to load the jk
module
#
LoadModule jk_module modules/mod_jk.dll

JkWorkersFile
C:/Programs/Tomcat4.0/conf/workers.properties
JkLogFile C:/Programs/Tomcat4.0/logs/mod_jk.log

#
# Log level to be used by mod_jk
#
JkLogLevel error

#
# Root context mounts for Tomcat
#
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

Then for each Context you had created in tomcat you
should had a paragraph
like this (it's the same thong as in TC3):
Here my context is /pfe
and the directory of the web-app is
C:/Work/Dev/pfe/stock/gui/dist/pfe-gui

#
# The following line makes apache aware of the
location of the /pfe context
# Alias /pfe C:/Work/Dev/pfe/stock/gui/dist/pfe-gui
Directory C:/Work/Dev/pfe/stock/gui/dist/pfe-gui
Options Indexes FollowSymLinks
/Directory

#
# The following line mounts all JSP files and the
/servlet/ uri to tomcat #
JkMount /pfe/servlet/* ajp13 JkMount /pfe/*.jsp ajp13
JkMount /pfe/*.do
ajp13

#
# The following line prohibits users from directly
accessing WEB-INF #
Location /pfe/WEB-INF/
AllowOverride None
deny from all
/Location
#
# Use Directory too. On Windows, Location doesn't work
unless case matches #
Directory
C:/Work/Dev/pfe/stock/gui/dist/pfe-gui/WEB-INF/
AllowOverride None
deny from all
/Directory

#
# The following line prohibits users from directly
accessing META-INF #
Location /pfe/META-INF/
AllowOverride None
deny from all
/Location
#
# Use Directory too. On Windows, Location doesn't work
unless case matches #
Directory
C:/Work/Dev/pfe/stock/gui/dist/pfe-gui/META-INF/
AllowOverride None
deny from all
/Directory


You can also do the same type of things to deploy the
web-app directly as
the root of apache.

Ashish
--- [EMAIL PROTECTED] wrote:
 
 I have looked all over the place and I have tried to
 duplicate
 what I did on earlier versions of Tomcat.  But I am
 getting
 anywhere.
 
 Where is there a doc that tells me how to integrate
 Apache, Tomcat 4 with
 virtual hosts on Unix (Linux).
 
 Thanks for any help.
 
 Thanks,
 -Steve
 
 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Apache / Tomcat 4.01/ Virtualhost

2002-01-20 Thread tc


I have looked all over the place and I have tried to duplicate
what I did on earlier versions of Tomcat.  But I am getting
anywhere.

Where is there a doc that tells me how to integrate Apache, Tomcat 4 with
virtual hosts on Unix (Linux).

Thanks for any help.

Thanks,
-Steve



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Problems with Virtualhost

2001-12-13 Thread Enrique López

I have installed Tomcat 3.2.3 and I have defined many virtualhosts.

Ok, all things runs well, but on my work directory (where tomcat compile JSP's) tomcat 
creates on directory for each virtualhost that I have and compiles all my JSP's once 
for each virtualhost...

Can I say to tomcat that all virtualhost has the same work directory?

Best Regards

Enrique López [ [EMAIL PROTECTED] ]
I+D
NewMedia Publishing [ http://www.nmp.es ]
Tel. +34 915 913 948
---




RE: Config Problem : VirtualHost, mod_rewrite and mod_jk

2001-12-05 Thread Larry Isaacs

Hi Geir,

Concerning mod_rewrite, there was a lot of discussion about
what mod_jk should do about the Servlet 2.2's requirement that
HttpServletRequest.getRequestURI() return a URI that *remains*
encoded.  So that it *remains* encoded, the mod_jk in Tomcat 3.2.3
forwards the unparsed request to Tomcat.  This prevents
mod_rewrite from having an effect since it modifies the
parsed request.

To bring mod_rewrite back online, mod_jk in Tomcat 3.2.4
forwards a re-encoded version of the parsed request
(sacrificing remains in favor of functionality).

In Tomcat 3.3, this is configurable, though this hasn't
yet made it into the documentation. :(

In the mod_jk configuration file, you can set the following
options to control which request is forwarded to Tomcat.

JkOptions ForwardURICompat+

forwards the parsed URI as is.  Tomcat 3.3 will re-encode
the request for getRequestURI().  This is the default
behavior.

JkOptions ForwardURICompatUnparsed+

forwards the unparsed URI and Tomcat 3.3 will return
this string unmodified for getRequestURI().  This best
matches the spec, but breaks mod_rewrite.  This matches
Tomcat 3.2.3's mod_jk behavior.

JkOptions ForwardURIEscaped+

forwards the re-encoded parsed URI and Tomcat 3.3 will
return this string unmodified for getRequestUR().  This
matches Tomcat 3.2.4's mod_jk behavior.

I'll try to add some documentation concerning this in the
Tomcat 3.3 release.

Hope this helps.

Cheers,
Larry

 -Original Message-
 From: Geir Magnusson Jr. [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 04, 2001 9:17 PM
 To: Tomcat Users List
 Subject: Config Problem : VirtualHost, mod_rewrite and mod_jk
 
 
 I am looking for some tips or advice on a configuration problem :
 
 I wish to configure Apache with virtual hosts, and along with some URL
 rewriting, and use mod_jk under httpd 1.3.x And Tomcat 3.2.3
 
 I have successfully configured mod_jk and two Hosts in tomcat's
 server.xml, and have verified that mod_jk is working, and the 
 Hosts are
 properly mapping requests to two separate webapps.  So far, so good.
 
 The problem comes in with mod_rewrite.  This is an update 
 from mod_jserv,
 where 
 
   Action action1  /servlet/com.foo.FooServlet
 
   LocationMatch /*.html
 SetHandler action1
   /LocationMatch
 
 Was used, and this worked fine.
 
 When I switched to mod_jk and VirtualHosts, this resulted in 
 recursion,
 constructing a huge URL that Apache coughed up.
 
 I then switched to mod_rewrite, and was able to (easily) 
 construct a rewrite
 rule to do the same thing.  I used the [P] flag to force it 
 to the proxy.
 
 The problem is that mod_jk never 'picked up' the rewritten URL.
 
 I have searched for some information on this, but to no 
 avail.  There were
 references to putting the LoadModule for mod_jk before the 
 LoadModule for
 mod_rewrite, and I have tried that (and reverse) and other 
 orderings of
 mod_jk directives, rewrite directives, in the VirtualHost, 
 outside of the
 VirtualHost etc.
 
 Any insight would be greatly appreciated...
 
 Thanks in advance.
 
 geir
 
 -- 
 Geir Magnusson Jr.   [EMAIL PROTECTED]
 System and Software Consulting
 You're going to end up getting pissed at your software
 anyway, so you might as well not pay for it. Try Open Source.
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Config Problem : VirtualHost, mod_rewrite and mod_jk

2001-12-05 Thread Geir Magnusson Jr.

On 12/5/01 9:12 AM, Larry Isaacs [EMAIL PROTECTED] wrote:

 Hi Geir,
 
 Concerning mod_rewrite, there was a lot of discussion about
 what mod_jk should do about the Servlet 2.2's requirement that
 HttpServletRequest.getRequestURI() return a URI that *remains*
 encoded.  So that it *remains* encoded, the mod_jk in Tomcat 3.2.3
 forwards the unparsed request to Tomcat.  This prevents
 mod_rewrite from having an effect since it modifies the
 parsed request.
 
 To bring mod_rewrite back online, mod_jk in Tomcat 3.2.4
 forwards a re-encoded version of the parsed request
 (sacrificing remains in favor of functionality).
 
 In Tomcat 3.3, this is configurable, though this hasn't
 yet made it into the documentation. :(

Ah.  Thanks.

I punted on the whole idea, and between the tomcat config, the app and
JkMount, managed to get it all working perfectly.

So I am happy.
 
 In the mod_jk configuration file, you can set the following
 options to control which request is forwarded to Tomcat.
 
   JkOptions ForwardURICompat+
 
 forwards the parsed URI as is.  Tomcat 3.3 will re-encode
 the request for getRequestURI().  This is the default
 behavior.
 
   JkOptions ForwardURICompatUnparsed+
 
 forwards the unparsed URI and Tomcat 3.3 will return
 this string unmodified for getRequestURI().  This best
 matches the spec, but breaks mod_rewrite.  This matches
 Tomcat 3.2.3's mod_jk behavior.
 
   JkOptions ForwardURIEscaped+
 
 forwards the re-encoded parsed URI and Tomcat 3.3 will
 return this string unmodified for getRequestUR().  This
 matches Tomcat 3.2.4's mod_jk behavior.
 
 I'll try to add some documentation concerning this in the
 Tomcat 3.3 release.
 


Thanks for the info.  I was going to offer to update the docs, but I think
you might be better able to explain.

Thanks again.
 

-- 
Geir Magnusson Jr. [EMAIL PROTECTED]
System and Software Consulting
Be a giant.  Take giant steps.  Do giant things...


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Config Problem : VirtualHost, mod_rewrite and mod_jk

2001-12-04 Thread Geir Magnusson Jr.

I am looking for some tips or advice on a configuration problem :

I wish to configure Apache with virtual hosts, and along with some URL
rewriting, and use mod_jk under httpd 1.3.x And Tomcat 3.2.3

I have successfully configured mod_jk and two Hosts in tomcat's
server.xml, and have verified that mod_jk is working, and the Hosts are
properly mapping requests to two separate webapps.  So far, so good.

The problem comes in with mod_rewrite.  This is an update from mod_jserv,
where 

  Action action1  /servlet/com.foo.FooServlet

  LocationMatch /*.html
SetHandler action1
  /LocationMatch

Was used, and this worked fine.

When I switched to mod_jk and VirtualHosts, this resulted in recursion,
constructing a huge URL that Apache coughed up.

I then switched to mod_rewrite, and was able to (easily) construct a rewrite
rule to do the same thing.  I used the [P] flag to force it to the proxy.

The problem is that mod_jk never 'picked up' the rewritten URL.

I have searched for some information on this, but to no avail.  There were
references to putting the LoadModule for mod_jk before the LoadModule for
mod_rewrite, and I have tried that (and reverse) and other orderings of
mod_jk directives, rewrite directives, in the VirtualHost, outside of the
VirtualHost etc.

Any insight would be greatly appreciated...

Thanks in advance.

geir

-- 
Geir Magnusson Jr.   [EMAIL PROTECTED]
System and Software Consulting
You're going to end up getting pissed at your software
anyway, so you might as well not pay for it. Try Open Source.



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: virtualhost

2001-11-12 Thread Roy K. Mayr R.

thanks Larry !!!

Roy
- Original Message -
From: "Larry Isaacs" [EMAIL PROTECTED]
To: "'Tomcat Users List'" [EMAIL PROTECTED]
Sent: Wednesday, November 07, 2001 3:35 PM
Subject: RE: virtualhost


 For Tomcat 3.3, Host entries can, but aren't normally placed
 in server.xml.  Instead a separate XML file beginning with "apps-"
 is created to hold the configuration settings.   As in my prior
 post, see the conf/apps-example.xml file for an example and
 see:


http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#context_addc
ust

 for some documentation.  Please try this approach and
 send the "apps-???.xml" file you create and the resulting
 conf/auto/mod_jk.conf and I'll see if I can spot the problem.

 Cheers,
 Larry


  -Original Message-
  From: Lomesh Contractor [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, November 07, 2001 12:38 AM
  To: Tomcat Users List
  Subject: RE: virtualhost
 
 
  "Host" entry must be in server.xml file..
 
  Can you send me your httpd.conf and server.xml ...??
 
  -Original Message-
  From: Roy K. Mayr R. [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, November 06, 2001 8:29 PM
  To: Tomcat Users List
  Subject: Re: virtualhost
 
 
  In ContextManager entry ?
 
  When i put this entry (Host name = ..) en server.xml,
  after that i
  restart tomcat, when restart apache:
 
  Syntax error on line 24 of /www/src/tomcat3.3/conf/auto/mod_jk.conf:
  Missing /VirtualHost directive at end-of-file
  /local/apache/bin/apachectl start: httpd could not be started
 
  Where i must to put host entry ??
 
  Roy
 
   In your server.xml make entry like this
  
   Host name="myApplication.mycompany.edu" 
 Context path="/"
docBase="/www/myApplication"
debug="0"
reloadable="true"
trusted="true"
  /Context
   /Host
  
  
   and restart your httpd
  
  
   -Original Message-
   From: Roy K. Mayr R. [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, November 06, 2001 7:42 PM
   To: Tomcat Users List
   Subject: virtualhost
  
  
   Hi...
  
   I'm using tomcat 3.3 with apache (mod_jk), jdk1.4, on solaris 8.
  
   When i use:  www.mycompany.edu/myApplication all work fine !!,
   but i need to use:  myApplication.mycompany.edu and it
  showme 404 error !!
  
   In app-myApplication.xml  I have:
  
   Context path="/myApplication"  docBase="/www/myApplication"
   debug="0"
   reloadable="true" 
  
   and in http.conf from apache i have,
  
   VirtualHost myApplication.mycompany.edu
 DocumentRoot /www/myApplication
 ServerName myApplication.mycompany.edu
 JkMount /*.jsp ajp13
   /VirtualHost
  
   Why don't can find index.jsp from myApplication? What is wrong ?
  
   Thanks for advance.
  
   Roy
  
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: setting virtualhost (portbased) apache-mod_jk-tomcat

2001-09-25 Thread Larry Isaacs

For Tomcat 3.2.x and Tomcat 3.3 to recognize the virtual
host from Apache the ServerName in httpd config must match
the Host name in the Tomcat config, i.e.

VirtualHost xx.xxx.x.xxx:5181
  ServerName must.match
  

Host name=must.match ...

Cheers,
Larry


 -Original Message-
 From: Sampath K Settipalli [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 24, 2001 1:00 PM
 To: [EMAIL PROTECTED]
 Subject: Re: setting virtualhost (portbased) apache-mod_jk-tomcat
 
 
 Hi,
 
   Is there some one who had setup port-based virtual hosts 
 successfully.
  Looks like from my server.xml it doesn't recognise the 
 context-path entry
 for that virtual host. This is what I have in my httpd.conf  
 server.xml
 httpd.conf:::
 
 Listen 5181
 VirtualHost xx.xxx.x.xxx:5181
  ServerName www.wi.sampath.edu
  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot /usr/home/squid/sandbox/sampath/squid
  JkMount /servlet/* ajp13
  JkMount /*.jsp ajp13
  # URL aliases for pages that need easy to type in URL's
  Alias /squid/login
 /usr/home/squid/sandbox/sampath/squid/common/html/login1.html
  Alias /squid/login.html
 /usr/home/squid/sandbox/sampath/squid/common/html/login1.html
 /VirtualHost
 
 Server.xml::
 
 Host name=http://xx.xxx.x.xxx:5181; 
Context path=
 docBase=webapps/ROOT/sqdev-sampath 
   crossContext=false
   debug=9
   reloadable=true
 /Context
 /Host
 ---
 xx.xxx.x.xxx:5180 is the same IP address I specified in httpd.conf
 virtualhost entry
 
 When I type IP address xx.xxx.x.xxx:5181
 It displays me the html page and then passes the request to  
 tomcat. But
 looks like from there it doesn't recognise the context and says
 .../path/servlet not found on the server www.wi.sampath.edu port 5180
 
 In the above server.xml Host name entry it is the  IP address and port
 rather than virtual host name . However I tried giving the 
 server name I
 specified in httpd.conf virtualhost entry 
 (www.wi.sampath.edu) . It still
 doesn't work.
 I'm using apache 1.3.20  tomcat 3.2.3.
 Can some one please suggest what else can I try.
 
 Thanks,
 Sampath
 
 
 
 Larry Isaacs wrote:
 
  Hi Sampath,
 
  I'm not sure if there are issues in Tomcat 3.2.3 and
  virtual hosting.
 
  I do know some work was done in Tomcat 3.3 to better support
  this.  I haven't tried port based virtual hosting but after a
  quick scan your configuration, it looks like it should work.
  I would suggest you give 3.3b2 or the Tomcat 3.3 nightly
  a try if you can.
 
  Cheers,
  Larry
 
   -Original Message-
   From: Sampath K Settipalli [mailto:[EMAIL PROTECTED]]
   Sent: Friday, September 21, 2001 12:40 PM
   To: [EMAIL PROTECTED]
   Subject: setting virtualhost (portbased) apache-mod_jk-tomcat
  
  
   Hi All,
  
   My requirement is I need to setup different 
 virtual hosts for
   each user in my development environment. Each user will be having
   his/her own copy of classes in a different directory/path 
 which each
   ones context in tomcat points to. I went throught the 
 documents and
   user-archive mails and tried to setup port -based virtual 
 hosts . For
   the same IP address of apache use one port per each user. I'm
   not really
   sure if port-based VH is a good option or go for IP-based VH .
   This is what I did.
  
   httpd.conf::
   ---
   I added directive
   Listen 5180
   Listen 5181 (1 virtual host of a user)
   Listen 5182 (for 2nd user)
  
   Then
   VirtualHost XX.XXX.X.XXX:5181
ServerName www.squid.sampath.edu
DocumentRoot /usr/home/squid/sandbox/sampath/squid
JkMount /servlet/* ajp13
JkMount /*.jsp ajp13
# URL aliases
Alias /squid/login
   /usr/home/squid/sandbox/sampath/squid/common/html/login.html
Alias /squid/login.html
   /usr/home/squid/sandbox/sampath/squid/common/html/login.html
   /VirtualHost
   --
   For 2nd user
   VirtualHost XX.XXX.X.XXX:5182
ServerName www.squid.user2.edu
DocumentRoot /usr/home/squid/sandbox/user2/squid
JkMount /servlet/* ajp13
JkMount /*.jsp ajp13
# URL aliases for pages that need easy to type in URL's
Alias /squid/login
   /usr/home/squid/sandbox/user2/squid/common/html/login.html
Alias /squid/login.html
   /usr/home/squid/sandbox/user2/squid/common/html/login.html
   /VirtualHost
   -
   IP address XX.XXX.X.XXX is same for all users
  
   Changes in server.xml
   --
   Host name=www.squid.sampath.edu 
  Context path=
   docBase=webapps/ROOT/sqdev-sampath 
 crossContext=false
 debug=9
 reloadable=true
   /Context
/Host
  
Host name=www.squid.user2.edu 
  Context path=
   docBase=webapps/ROOT/sqdev-tedd 
 crossContext=false
 debug=9
 reloadable=true
   /Context
 /Host

Re: setting virtualhost (portbased) apache-mod_jk-tomcat

2001-09-24 Thread Sampath K Settipalli

Hi,

  Is there some one who had setup port-based virtual hosts successfully.
 Looks like from my server.xml it doesn't recognise the context-path entry
for that virtual host. This is what I have in my httpd.conf  server.xml
httpd.conf:::

Listen 5181
VirtualHost xx.xxx.x.xxx:5181
 ServerName www.wi.sampath.edu
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /usr/home/squid/sandbox/sampath/squid
 JkMount /servlet/* ajp13
 JkMount /*.jsp ajp13
 # URL aliases for pages that need easy to type in URL's
 Alias /squid/login
/usr/home/squid/sandbox/sampath/squid/common/html/login1.html
 Alias /squid/login.html
/usr/home/squid/sandbox/sampath/squid/common/html/login1.html
/VirtualHost

Server.xml::

Host name=http://xx.xxx.x.xxx:5181; 
   Context path=
docBase=webapps/ROOT/sqdev-sampath 
  crossContext=false
  debug=9
  reloadable=true
/Context
/Host
---
xx.xxx.x.xxx:5180 is the same IP address I specified in httpd.conf
virtualhost entry

When I type IP address xx.xxx.x.xxx:5181
It displays me the html page and then passes the request to  tomcat. But
looks like from there it doesn't recognise the context and says
.../path/servlet not found on the server www.wi.sampath.edu port 5180

In the above server.xml Host name entry it is the  IP address and port
rather than virtual host name . However I tried giving the server name I
specified in httpd.conf virtualhost entry (www.wi.sampath.edu) . It still
doesn't work.
I'm using apache 1.3.20  tomcat 3.2.3.
Can some one please suggest what else can I try.

Thanks,
Sampath



Larry Isaacs wrote:

 Hi Sampath,

 I'm not sure if there are issues in Tomcat 3.2.3 and
 virtual hosting.

 I do know some work was done in Tomcat 3.3 to better support
 this.  I haven't tried port based virtual hosting but after a
 quick scan your configuration, it looks like it should work.
 I would suggest you give 3.3b2 or the Tomcat 3.3 nightly
 a try if you can.

 Cheers,
 Larry

  -Original Message-
  From: Sampath K Settipalli [mailto:[EMAIL PROTECTED]]
  Sent: Friday, September 21, 2001 12:40 PM
  To: [EMAIL PROTECTED]
  Subject: setting virtualhost (portbased) apache-mod_jk-tomcat
 
 
  Hi All,
 
  My requirement is I need to setup different virtual hosts for
  each user in my development environment. Each user will be having
  his/her own copy of classes in a different directory/path which each
  ones context in tomcat points to. I went throught the documents and
  user-archive mails and tried to setup port -based virtual hosts . For
  the same IP address of apache use one port per each user. I'm
  not really
  sure if port-based VH is a good option or go for IP-based VH .
  This is what I did.
 
  httpd.conf::
  ---
  I added directive
  Listen 5180
  Listen 5181 (1 virtual host of a user)
  Listen 5182 (for 2nd user)
 
  Then
  VirtualHost XX.XXX.X.XXX:5181
   ServerName www.squid.sampath.edu
   DocumentRoot /usr/home/squid/sandbox/sampath/squid
   JkMount /servlet/* ajp13
   JkMount /*.jsp ajp13
   # URL aliases
   Alias /squid/login
  /usr/home/squid/sandbox/sampath/squid/common/html/login.html
   Alias /squid/login.html
  /usr/home/squid/sandbox/sampath/squid/common/html/login.html
  /VirtualHost
  --
  For 2nd user
  VirtualHost XX.XXX.X.XXX:5182
   ServerName www.squid.user2.edu
   DocumentRoot /usr/home/squid/sandbox/user2/squid
   JkMount /servlet/* ajp13
   JkMount /*.jsp ajp13
   # URL aliases for pages that need easy to type in URL's
   Alias /squid/login
  /usr/home/squid/sandbox/user2/squid/common/html/login.html
   Alias /squid/login.html
  /usr/home/squid/sandbox/user2/squid/common/html/login.html
  /VirtualHost
  -
  IP address XX.XXX.X.XXX is same for all users
 
  Changes in server.xml
  --
  Host name=www.squid.sampath.edu 
 Context path=
  docBase=webapps/ROOT/sqdev-sampath 
crossContext=false
debug=9
reloadable=true
  /Context
   /Host
 
   Host name=www.squid.user2.edu 
 Context path=
  docBase=webapps/ROOT/sqdev-tedd 
crossContext=false
debug=9
reloadable=true
  /Context
/Host
  ---
  No changes to workers.properties. Do I need to do any ?
 
  With this when I try apache starts fine and  when I type
  virtuahost name
  www.squid.sampath.edu its not recognised. Howver when I type IPaddress
  XX.XXX.X.XXX:5181/5182 it recognizes the aliases and displays the html
  page but then looks like it doesn't forward the request to tomcat
  (executes a servlet) or not recognised from here. It says The server
  encountered an internal error or misconfiguration and was unable to
  complete your request. .
  It used to work fine without virtual hosts.
  ---
  Now as per my requirement is Port based  virtualHosts a good way to
  set-up

setting virtualhost (portbased) apache-mod_jk-tomcat

2001-09-21 Thread Sampath K Settipalli

Hi All,

My requirement is I need to setup different virtual hosts for
each user in my development environment. Each user will be having
his/her own copy of classes in a different directory/path which each
ones context in tomcat points to. I went throught the documents and
user-archive mails and tried to setup port -based virtual hosts . For
the same IP address of apache use one port per each user. I'm not really
sure if port-based VH is a good option or go for IP-based VH .
This is what I did.

httpd.conf::
---
I added directive
Listen 5180
Listen 5181 (1 virtual host of a user)
Listen 5182 (for 2nd user)

Then
VirtualHost XX.XXX.X.XXX:5181
 ServerName www.squid.sampath.edu
 DocumentRoot /usr/home/squid/sandbox/sampath/squid
 JkMount /servlet/* ajp13
 JkMount /*.jsp ajp13
 # URL aliases
 Alias /squid/login
/usr/home/squid/sandbox/sampath/squid/common/html/login.html
 Alias /squid/login.html
/usr/home/squid/sandbox/sampath/squid/common/html/login.html
/VirtualHost
--
For 2nd user
VirtualHost XX.XXX.X.XXX:5182
 ServerName www.squid.user2.edu
 DocumentRoot /usr/home/squid/sandbox/user2/squid
 JkMount /servlet/* ajp13
 JkMount /*.jsp ajp13
 # URL aliases for pages that need easy to type in URL's
 Alias /squid/login
/usr/home/squid/sandbox/user2/squid/common/html/login.html
 Alias /squid/login.html
/usr/home/squid/sandbox/user2/squid/common/html/login.html
/VirtualHost
-
IP address XX.XXX.X.XXX is same for all users

Changes in server.xml
--
Host name=www.squid.sampath.edu 
   Context path=
docBase=webapps/ROOT/sqdev-sampath 
  crossContext=false
  debug=9
  reloadable=true
/Context
 /Host

 Host name=www.squid.user2.edu 
   Context path=
docBase=webapps/ROOT/sqdev-tedd 
  crossContext=false
  debug=9
  reloadable=true
/Context
  /Host
---
No changes to workers.properties. Do I need to do any ?

With this when I try apache starts fine and  when I type virtuahost name
www.squid.sampath.edu its not recognised. Howver when I type IPaddress
XX.XXX.X.XXX:5181/5182 it recognizes the aliases and displays the html
page but then looks like it doesn't forward the request to tomcat
(executes a servlet) or not recognised from here. It says The server
encountered an internal error or misconfiguration and was unable to
complete your request. .
It used to work fine without virtual hosts.
---
Now as per my requirement is Port based  virtualHosts a good way to
set-up or will IP-based Virtual hosts be a good way.
When coming to JVM should all Virtual hosts be under 1 JVM or each under
1 JVM.
Can someone please suggest and point me in the right direction.
I'm using apache 1.3.20, mod_jk and tomcat 3.2.3 on solaris.

Thanks in advance,
Sampath




RE: setting virtualhost (portbased) apache-mod_jk-tomcat

2001-09-21 Thread Larry Isaacs

Hi Sampath,

I'm not sure if there are issues in Tomcat 3.2.3 and 
virtual hosting.

I do know some work was done in Tomcat 3.3 to better support
this.  I haven't tried port based virtual hosting but after a
quick scan your configuration, it looks like it should work.
I would suggest you give 3.3b2 or the Tomcat 3.3 nightly
a try if you can.

Cheers,
Larry


 -Original Message-
 From: Sampath K Settipalli [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 21, 2001 12:40 PM
 To: [EMAIL PROTECTED]
 Subject: setting virtualhost (portbased) apache-mod_jk-tomcat
 
 
 Hi All,
 
 My requirement is I need to setup different virtual hosts for
 each user in my development environment. Each user will be having
 his/her own copy of classes in a different directory/path which each
 ones context in tomcat points to. I went throught the documents and
 user-archive mails and tried to setup port -based virtual hosts . For
 the same IP address of apache use one port per each user. I'm 
 not really
 sure if port-based VH is a good option or go for IP-based VH .
 This is what I did.
 
 httpd.conf::
 ---
 I added directive
 Listen 5180
 Listen 5181 (1 virtual host of a user)
 Listen 5182 (for 2nd user)
 
 Then
 VirtualHost XX.XXX.X.XXX:5181
  ServerName www.squid.sampath.edu
  DocumentRoot /usr/home/squid/sandbox/sampath/squid
  JkMount /servlet/* ajp13
  JkMount /*.jsp ajp13
  # URL aliases
  Alias /squid/login
 /usr/home/squid/sandbox/sampath/squid/common/html/login.html
  Alias /squid/login.html
 /usr/home/squid/sandbox/sampath/squid/common/html/login.html
 /VirtualHost
 --
 For 2nd user
 VirtualHost XX.XXX.X.XXX:5182
  ServerName www.squid.user2.edu
  DocumentRoot /usr/home/squid/sandbox/user2/squid
  JkMount /servlet/* ajp13
  JkMount /*.jsp ajp13
  # URL aliases for pages that need easy to type in URL's
  Alias /squid/login
 /usr/home/squid/sandbox/user2/squid/common/html/login.html
  Alias /squid/login.html
 /usr/home/squid/sandbox/user2/squid/common/html/login.html
 /VirtualHost
 -
 IP address XX.XXX.X.XXX is same for all users
 
 Changes in server.xml
 --
 Host name=www.squid.sampath.edu 
Context path=
 docBase=webapps/ROOT/sqdev-sampath 
   crossContext=false
   debug=9
   reloadable=true
 /Context
  /Host
 
  Host name=www.squid.user2.edu 
Context path=
 docBase=webapps/ROOT/sqdev-tedd 
   crossContext=false
   debug=9
   reloadable=true
 /Context
   /Host
 ---
 No changes to workers.properties. Do I need to do any ?
 
 With this when I try apache starts fine and  when I type 
 virtuahost name
 www.squid.sampath.edu its not recognised. Howver when I type IPaddress
 XX.XXX.X.XXX:5181/5182 it recognizes the aliases and displays the html
 page but then looks like it doesn't forward the request to tomcat
 (executes a servlet) or not recognised from here. It says The server
 encountered an internal error or misconfiguration and was unable to
 complete your request. .
 It used to work fine without virtual hosts.
 ---
 Now as per my requirement is Port based  virtualHosts a good way to
 set-up or will IP-based Virtual hosts be a good way.
 When coming to JVM should all Virtual hosts be under 1 JVM or 
 each under
 1 JVM.
 Can someone please suggest and point me in the right direction.
 I'm using apache 1.3.20, mod_jk and tomcat 3.2.3 on solaris.
 
 Thanks in advance,
 Sampath
 



How to configure Tomcat+Apahce+VirtualHost

2001-03-05 Thread Chris Chan


My server have installed the Apache 1.3.17, Solaris 8 and the Tomcat-3.3-m1
(Bin).

Anyone can tell me how to configure Tomcat to work with Apache + Virtual
host. or tell me some online documents that i can learn this. Thanks in
advance.



  Chris


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




VirtualHost ?

2001-01-09 Thread Guy-Noël MATHIEU

Hi,
I want to access my servlet using the URL http://localhost/examples/.

TOMCAT work fin with http://localhost:8080/examples/ . Does I use
VirtualHost ou "mapping" the direct URL with server.xml to work directly
???

I use mod_jk with apache, is it a good solution and how configure this 3
servers to works together accessing http://localhost/examples without 8080
port ?

Any idea will be friendly because i'm lost in the manual

Thanks



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




Re: VirtualHost ?

2001-01-09 Thread Trevor Little

I'm not exactly sure what you are asking but to get rid of the 8080 you
just need to edit server.xml and change the port from 8080 to 80.  That
is for tomcat standalone.  But if you're using apache with tomcat this
isn't the correct thing to do.

"Guy-Nol MATHIEU" wrote:
 
 Hi,
 I want to access my servlet using the URL http://localhost/examples/.
 
 TOMCAT work fin with http://localhost:8080/examples/ . Does I use
 VirtualHost ou "mapping" the direct URL with server.xml to work directly
 ???
 
 I use mod_jk with apache, is it a good solution and how configure this 3
 servers to works together accessing http://localhost/examples without 8080
 port ?
 
 Any idea will be friendly because i'm lost in the manual
 
 Thanks
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




Re: One virtualhost per webapp

2000-12-13 Thread Shahed Ali

Tomcat 3.2 has a HOST directive. Use that.
I am doing just what you are trying to do and running only 1 instance of
Tomcat.

Regards
Shahed.
-Original Message-
From: Angel Aray [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Tuesday, December 12, 2000 11:15 PM
Subject: One virtualhost per webapp


Hi everyone,

  I've got a couple of applications running on tomcat and I would
like each of them to run on a separate apache VirtualHost so than when
I point the browser to http://appA.domain.com/index.jsp  it is mapped to
context /appA and http://appB.domain.com/index.jsp  it is mapped to context
/appB on the same tomcat instance. It seemed simple at first but I've had
a tough time trying to get it to work.

I've read the mod_jk howto several times but nothing there seems to help.

The mod_jserv info on the apache user guide has something close but it says
that you need to run each context on its own JVM and I would prefer not to
do that.

Any ideas of how to do this?


Regards,
 Angel Aray.









One virtualhost per webapp

2000-12-12 Thread Angel Aray

Hi everyone,

  I've got a couple of applications running on tomcat and I would
like each of them to run on a separate apache VirtualHost so than when
I point the browser to http://appA.domain.com/index.jsp  it is mapped to
context /appA and http://appB.domain.com/index.jsp  it is mapped to context
/appB on the same tomcat instance. It seemed simple at first but I've had
a tough time trying to get it to work.

I've read the mod_jk howto several times but nothing there seems to help.

The mod_jserv info on the apache user guide has something close but it says
that you need to run each context on its own JVM and I would prefer not to
do that.

Any ideas of how to do this?


Regards,
Angel Aray.