Thanks again John, but the * were there just for testing purposes. When I migrate to production I'll have only the *.jsp directed.

Sorry to insist, but I'm not sure I understood what you meant with the virtualhost example... by doing the following, am I not doing the same?

If not, How would apache know,in your example, which connector to look for for each port?


<VirtualHost 141.19.93.41:8080>
ErrorLog logs/virtualhost1.log
TransferLog logs/VH1access.log

JkMount /*.jsp worker_ajp13_1

</VirtualHost>

<VirtualHost 141.19.93.41:8081>
Errorlog logs/virtualhost2.log
TransferLog logs/VH2access.log

JkMount /*.jsp worker_ajp13_2
</VirtualHost>


tks,
gunther

From: "Turner, John" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: 'Tomcat Users List' <[EMAIL PROTECTED]>
Subject: RE: Almost there: Odd error in mod_jk.log
Date: Mon, 16 Dec 2002 10:42:38 -0500


I wouldn't even use Apache to do that.

That said, if you want to use Apache, my guess is you would have to look
into using either something like the Proxy* Apache runtime directives, or
simply put your port numbers into the VirtualHost directives, like this:

VirtualHost www.foo.com:8080
VirtualHost www.bar.com:8081

I'm still not sure I see the benefit of using Apache at all in this
scenario. If you have requests coming in on ports 8080 and 8081, just setup
Tomcat standalone with 2 HTTP connectors (one on 8080 and one on 8081) and
call it good, especially if you are sending all requests to Tomcat anyway
with "/*". But that's me.

The HTTP connector on 8080 is already defined in server.xml.

John

> -----Original Message-----
> From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 16, 2002 10:35 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Almost there: Odd error in mod_jk.log
>
>
> :) Thanks for the * hint, just to make sure I'm not getting
> it all wrong:
>
> What I really wanted to do with this virtual host lines is to
> have Apache
> forward everything from port 8080 to worker_ajp13_1 and
> everything from port
> 8081 to to worker_ajp13_1.
>
> It seems I'm not getting it done with this configuration..
> what am I doing
> wrong? (assuming I corrected the /*.* to /*..)
>
> thanks again.
> gunther
>
>
>
>
>
>
> >From: "Turner, John" <[EMAIL PROTECTED]>
> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> >Subject: RE: Almost there: Odd error in mod_jk.log
> >Date: Mon, 16 Dec 2002 10:25:45 -0500
> >
> >
> >Nope. As far as I know, mod_jk only supports one "*".
> "*.*" is invalid.
> >If you want to send everything to Tomcat (in which case
> Apache and mod_jk
> >is
> >redundant), you would use "/*".
> >
> >Also, this is just my personal preference, but AFAIK "ajp12"
> serves no
> >purpose in workers.properties, it just adds clutter. Also,
> if you are
> >going
> >to define two workers for Tomcat, then you need to define a
> load balancer,
> >otherwise the first worker will get all of the requests,
> which makes the
> >second worker useless.
> >
> >For info on load-balancing (one Apache, multiple Tomcats), see
> >http://www.ubeans.com/tomcat
> >
> >John
> >
> > > -----Original Message-----
> > > From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, December 16, 2002 10:20 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: RE: Almost there: Odd error in mod_jk.log
> > >
> > >
> > > Hi John,
> > >
> > > Here it goes:
> > >
> > > from my httpd.conf:
> > >
> > > <VirtualHost 141.19.93.41:8080>
> > > ErrorLog logs/virtualhost1.log
> > > TransferLog logs/VH1access.log
> > >
> > > JkMount /*.* worker_ajp13_1
> > >
> > > </VirtualHost>
> > >
> > > <VirtualHost 141.19.93.41:8081>
> > > Errorlog logs/virtualhost2.log
> > > TransferLog logs/VH2access.log
> > >
> > > JkMount /*.* worker_ajp13_2
> > > </VirtualHost>
> > >
> > > from my workers.properties:
> > >
> > > worker.list=ajp12, worker_ajp13_1, worker_ajp13_2
> > >
> > > #ajp12 worker definition
> > > worker.ajp12.port=8007
> > > worker.ajp12.host=localhost
> > > worker.ajp12.type=ajp12
> > >
> > > # **** First ajp13 port definition ***
> > > worker.worker_ajp13_1.port=11005
> > > worker.worker_ajp13_1.host=localhost
> > > worker.worker_ajp13_1.type=ajp13
> > >
> > > # **** Second ajp13 port definition ***
> > > worker.worker_ajp13_2.port=11009
> > > worker.worker_ajp13_2.host=localhost
> > > worker.worker_ajp13_2.type=ajp13
> > >
> > > when I try to access http://localhost:8080/index.jsp
> > > shouldn't it access my
> > > tomcat directory files?
> > > should I also have virtual hosts defined in Tomcat?
> > >
> > > thanks.
> > > gunther
> > >
> > >
> > > >From: "Turner, John" <[EMAIL PROTECTED]>
> > > >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > >To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> > > >Subject: RE: Almost there: Odd error in mod_jk.log
> > > >Date: Mon, 16 Dec 2002 10:04:12 -0500
> > > >
> > > >
> > > >What are your JkMount statements, and what are the contents of
> > > >workers.properties?
> > > >
> > > >John
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Monday, December 16, 2002 9:07 AM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: Almost there: Odd error in mod_jk.log
> > > > >
> > > > >
> > > > > Hi,
> > > > >
> > > > > I'm almost getting Apache and Tomcat to work together. I had
> > > > > some errors
> > > > > previously that have already been corrected. I'm now able to
> > > > > start both
> > > > > Tomcat and Apache with no errors, but I still can`t get the
> > > > > apache virtual
> > > > > hosts to redirect to Tomcat.
> > > > >
> > > > > The only error message I get is the following in mod_jk.log
> > > > >
> > > > > [jk_uri_worker_map.c (335)]:
> > > > > jk_uri_worker_map_t::uri_worker_map_close, NULL
> > > > > parameter
> > > > > [jk_uri_worker_map.c (185)]: In
> > > > > jk_uri_worker_map_t::uri_worker_map_free,
> > > > > NULL parameters
> > > > >
> > > > > any hints??
> > > > > thanks.
> > > > > gunther.
> > > > >
> > > > >
> _________________________________________________________________
> > > > > MSN 8 with e-mail virus protection service: 2 months FREE*
> > > > > http://join.msn.com/?page=features/virus
> > > > >
> > > > >
> > > > > --
> > > > > 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]>
> > >
> > >
> > > _________________________________________________________________
> > > Protect your PC - get McAfee.com VirusScan Online
> > > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> > >
> > >
> > > --
> > > 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]>
>
>
> _________________________________________________________________
> The new MSN 8: smart spam protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> --
> 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]>

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail


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

Reply via email to