Sorry, didn't realize you had the config in your earlier messages.  I came
in this morning and there were 300 messages in my tomcat-user box, so I've
been typing furiously trying to catch up. :)

In the config you just posted, everything should work just fine, though I've
never done it that way.  All of my requests come in on port 80.  The trick
isn't the mod_jk config, the trick is getting Apache to separate each
request...after that, the appropriate JkMount should take over.  Putting the
port number on the URL should work.

If it isn't working, I would look at the absence of the ServerName as the
culprit.  Are there Host elements in server.xml that match Apache's virtual
hosts?  If Apache is sending something like "1.2.3.4" to Tomcat, Tomcat
needs to be able to match that up to a Host in server.xml to understand
which Context to serve.

John

> -----Original Message-----
> From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 16, 2002 11:05 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Almost there: Odd error in mod_jk.log
> 
> 
> 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
> 

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

Reply via email to