about
httpd.conf :
<VirtualHost ixemel.net>
    ...
    <Location /examples>
       JkUriSet worker ajp13
   </Location>
</VirtualHost>

In my case, it is

<VirtualHost ixemel.net>
    ...
    <Location /examples>
       JkUriSet worker ajp13:localhost:8009
   </Location>
</VirtualHost>

----- Original Message -----
From: "Dom" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 20, 2002 11:29 PM
Subject: Re: mod_jk2, virtual hosts, JkUriSet


> Same tomcat from different virtual hosts in same Apache
>
> httpd.conf :
> <VirtualHost ixemel.net>
>     ...
>     <Location /examples>
>        JkUriSet worker ajp13
>    </Location>
> </VirtualHost>
>
> I also tried :
>
> workers2.properties :
>
> [lb:lb]
> info=Default load balancer.
> debug=0
>
> # Example socket channel, override port and host.
> [channel.socket:localhost:8009]
> port=8009
> lb_factor=1
> group=lb
> host=10.0.0.11
> disabled=0
>
> # define the worker
> [ajp13:localhost:8009]
> channel=channel.socket:localhost:8009
>
> [uri:/ixemel.net]
> info=ixemel.net default context.
> group=lb
> debug=0
>
> httpd.conf :
>
>  JkUriSet worker lb
>
> Works fine too
>
>
> Dom
> ----- Original Message -----
> From: "Dmitry Letin" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: "Dom" <[EMAIL PROTECTED]>
> Sent: Friday, September 20, 2002 8:51 PM
> Subject: RE: mod_jk2, virtual hosts, JkUriSet
>
>
> Hi Dom,
> did you actually put this verbatim into httpd.conf: "JkUriSet worker
ajp13"?
>
> Do you try to connect to the same tomcat from different virtual hosts
> or each virtual host connects to a separate tomcat instance?
>
> Dmitry
>
> -----Original Message-----
> From: Dom [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 20, 2002 1:35 PM
> To: Tomcat Users List
> Subject: Re: mod_jk2, virtual hosts, JkUriSet
>
> Hi
>
> I'm using JkUriSet statements as in
> http://www.mail-archive.com/[email protected]/msg66171.html
> with my RH7.3,  j2sdk1.4.1 fcs, Apache 2.0.40 and TC 4.1.10 with virtual
> hosts and they works fine.
>
> By the way, is there a way to compile mod_jk2 for Apache 1.3.26 ? The make
> builds the build/jk2/apache13 but not mod_jk2.so : looking for APR libs.
>
> Dom
> ----- Original Message -----
> From: "Robert L Sowders" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, September 19, 2002 11:48 PM
> Subject: Re: mod_jk2, virtual hosts, JkUriSet
>
>
> > Hmmmm,
> >
> > looks like you got some funny domains for those VirtualHosts as well as
> > some nonstandard JkUriSet statements.  You probably have a problem with
> > one or both.
> >
> > Others have been successful.
> > http://www.mail-archive.com/[email protected]/msg66171.html
> >
> > Make your virtual hosts as fully qualified domains and make your
JkUriSet
> > commands like the example.  Leave the port selection up to the
> > workers2.properties file.
> >
> > Regardless of how you do it, after you are successful a nice step by
step
> > How To would be appreciated by all.
> >
> > rls
> >
> >
> >
> >
> >
> > "Dmitry Letin" <[EMAIL PROTECTED]>
> > 09/19/2002 01:24 PM
> > Please respond to "Tomcat Users List"
> >
> >
> >         To:     <[EMAIL PROTECTED]>
> >         cc:
> >         Subject:        mod_jk2, virtual hosts, JkUriSet
> >
> > Hi,
> >
> > Has anybody managed to successfully connect apache virtual hosts to
> > different
> > instances of tomcat using mod_jk2?
> >
> > I spent several days looking at all available documentation, mail
archives
> > and
> > a bit of source code but could not make a working solution.
> >
> > I have no problem connecting to a single TomcatInstance. Problems start
> > when
> > I need to connect to two separate instances.
> >
> > I did check docs in
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html
> > and found them not helpful.
> >
> >
> > For simplicity:
> > I need to connect /*.jsp from apache VirtualHost1 to TomcatInstance1
> > and /*.jsp from apache VirtualHost2 to TomcatInstance2
> >
> > I would greatly appreciate if somebody could send required fragments
from
> > a WORKING config files: httpd.conf, workers2.conf and jk2.properties.
> >
> >
> > From jakarta-tomcat-connectors/jk/native2/server/apache2/mod_jk2.c I
> > found:
> >
> >  * Example:
> >  *   <VirtualHost foo.com>
> >  *      <Location /examples>
> >  *         JkUriSet worker ajp13
> >  *      </Location>
> >  *   </VirtualHost>
> >  *
> >  * This is the best way to define a webapplication in apache. It is
> >  * scalable ( using apache native optimizations, you can have hundreds
> >  * of hosts and thousands of webapplications ), 'natural' to any
> >  * apache user.
> >
> > Does it work properly at all?
> >
> > In my case I have:
> >
> > <VirtualHost vh1>
> >      <Location /*.jsp>
> >         JkUriSet worker ajp13:localhost:8009
> >      </Location>
> > </VirtualHost>
> >
> > <VirtualHost vh2>
> >      <Location /*.jsp>
> >         JkUriSet worker ajp13:localhost:8013
> >      </Location>
> > </VirtualHost>
> >
> > But in the end all requests (even from vh1) are routed to worker
> > ajp13:localhost:8013
> > But I expected them to be routed to ajp13:localhost:8009
> >
> > Looks like a bug to me.
> >
> >
> > Thanks,
> > Dmitry Letin
> >
> >
> >
> > --
> > 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]>
> >
> >
> >
>
> --
> 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]>
>
>
>


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

Reply via email to