You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Mark Lowe <ma...@talk21.com> on 2003/10/01 10:18:32 UTC
connectors documents
Hello
Despite using tomcat for 3-4 years jakarta connectors has remained the
moving goal post. I dont usually have the pleasure of having to get
tomcat and apache talking to one another, but i do now.
I've compiled jk, jk2 and mod_webapp so i guess my options are open as
to which i use. I've had all of them running in the sense that i can
mount a context and have apache serve my java stuff, but its very
sloppy..
http://mydomain/webappname/action.do
doesn't really do it for me as my aim is to have
http://mydomain/action.do
Please are there any documents that actually work on this subject
(virtual hosts and connectors) the tc4.1 doc on the subject of
configuring jk2 looks great, but after 2 days of trying I suspect that
this is yet another victim of the tc-connectors kabal.
Please no reference to http://localhost/examples or similar.. I know
how do to this, i could really do with someone's input on this.
tc 4.1.27
connectors 4.1.27
apache 2
a choice of jk, jk2 or mod_webapp I'm not fussy which.
Many thanks in advance
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: connectors documents
Posted by Mark Lowe <ma...@talk21.com>.
That was exactly what i needed..
The only problem was the server.xml bit where the jk2 example used an
appBase attribute rather than docBase in the context..
Many many thanks.
Mark
On Wednesday, October 1, 2003, at 06:06 PM, David Rees wrote:
> On Wed, October 1, 2003 at 2:13 am, Mark Lowe sent the following
>> Yeah i know,
>> I did.. and now i'm trying a cheeky question to the dev list..
>>
>> They seem to be more interested in other stuff on the user list..
>>
>> Given that both tomcat and apache are so great i'm surprised that they
>> continue to be plagued by this connector business. How many years now?
>> , I'm not sure, but if there was reason not to use these technologies
>> then connectors would be it..
>
> Well, it's certainly confusing for some people, so if you find a way to
> make it less confusing, please submit some patches to the developers!
>
>> I thought a mail to the folks who are involved with this stuff could
>> be
>> the way forward. Its great to see an example on jk2 and vhosts , it
>> would be even better if it worked.
>
> There are questions about Tomcat connectors posted to the -user list
> all
> the time, your question fits right in.
>
>> So to repeat my question on both lists..
>
> (I am only responding to tomcat-user)
>
>> Is there any documentation, on jk, jk2 or mod_webapp that explains
>> configuring vhosts in a sensible manner that doesn't just go as far as
>> http://domain/webappname .. because frankly that bit is easy, and
>> suffers from chocolate fire-guard syndrome in terms of it utility.
>
> It is a piece of cake. Using Apache1 or Apache2, mod_jk (I have not
> tried
> mod_jk2 myself) and Tomcat 4.1.27) here are a couple sample configs
> with 2
> vhosts using the root context.
>
> In Apache's httpd.conf, you need these settings for the virtual hosts:
>
> JkWorkersFile <pathto>/tomcat_workers.properties
> <VirtualHost *>
> ServerName vhost1
> JkMount /*.jsp tomcat1
> </VirtualHost
> <VirtualHost *>
> ServerName vhost2
> JkMount /*.jsp tomcat1
> </VirtualHost
>
> In your tomcat_workers.properties:
> worker.list=tomcat1
> worker.tomcat1.port=8007
> worker.tomcat1.host=localhost
> worker.tomcat1.type=ajp13
>
> In your Tomcat's server.xml:
>
> <Host name="vhost1">
> <Context path="" docBase="/vhost1/doc-root"/>
> </Host>
> <Host name="vhost2">
> <Context path="" docBase="/vhost2/doc-root"/>
> </Host>
>
> I've stripped out all the config settings not related to getting vhosts
> working in Apache/Tomcat above, but you should get the idea.
>
> -Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: connectors documents
Posted by Mark Lowe <ma...@talk21.com>.
Your unrockable certainty that you have it is a help is nothing else..
I'll let you know when its working.
Cheers Mark
On Wednesday, October 1, 2003, at 06:06 PM, David Rees wrote:
> On Wed, October 1, 2003 at 2:13 am, Mark Lowe sent the following
>> Yeah i know,
>> I did.. and now i'm trying a cheeky question to the dev list..
>>
>> They seem to be more interested in other stuff on the user list..
>>
>> Given that both tomcat and apache are so great i'm surprised that they
>> continue to be plagued by this connector business. How many years now?
>> , I'm not sure, but if there was reason not to use these technologies
>> then connectors would be it..
>
> Well, it's certainly confusing for some people, so if you find a way to
> make it less confusing, please submit some patches to the developers!
>
>> I thought a mail to the folks who are involved with this stuff could
>> be
>> the way forward. Its great to see an example on jk2 and vhosts , it
>> would be even better if it worked.
>
> There are questions about Tomcat connectors posted to the -user list
> all
> the time, your question fits right in.
>
>> So to repeat my question on both lists..
>
> (I am only responding to tomcat-user)
>
>> Is there any documentation, on jk, jk2 or mod_webapp that explains
>> configuring vhosts in a sensible manner that doesn't just go as far as
>> http://domain/webappname .. because frankly that bit is easy, and
>> suffers from chocolate fire-guard syndrome in terms of it utility.
>
> It is a piece of cake. Using Apache1 or Apache2, mod_jk (I have not
> tried
> mod_jk2 myself) and Tomcat 4.1.27) here are a couple sample configs
> with 2
> vhosts using the root context.
>
> In Apache's httpd.conf, you need these settings for the virtual hosts:
>
> JkWorkersFile <pathto>/tomcat_workers.properties
> <VirtualHost *>
> ServerName vhost1
> JkMount /*.jsp tomcat1
> </VirtualHost
> <VirtualHost *>
> ServerName vhost2
> JkMount /*.jsp tomcat1
> </VirtualHost
>
> In your tomcat_workers.properties:
> worker.list=tomcat1
> worker.tomcat1.port=8007
> worker.tomcat1.host=localhost
> worker.tomcat1.type=ajp13
>
> In your Tomcat's server.xml:
>
> <Host name="vhost1">
> <Context path="" docBase="/vhost1/doc-root"/>
> </Host>
> <Host name="vhost2">
> <Context path="" docBase="/vhost2/doc-root"/>
> </Host>
>
> I've stripped out all the config settings not related to getting vhosts
> working in Apache/Tomcat above, but you should get the idea.
>
> -Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: connectors documents
Posted by David Rees <db...@greenhydrant.com>.
On Wed, October 1, 2003 at 2:13 am, Mark Lowe sent the following
> Yeah i know,
> I did.. and now i'm trying a cheeky question to the dev list..
>
> They seem to be more interested in other stuff on the user list..
>
> Given that both tomcat and apache are so great i'm surprised that they
> continue to be plagued by this connector business. How many years now?
> , I'm not sure, but if there was reason not to use these technologies
> then connectors would be it..
Well, it's certainly confusing for some people, so if you find a way to
make it less confusing, please submit some patches to the developers!
> I thought a mail to the folks who are involved with this stuff could be
> the way forward. Its great to see an example on jk2 and vhosts , it
> would be even better if it worked.
There are questions about Tomcat connectors posted to the -user list all
the time, your question fits right in.
> So to repeat my question on both lists..
(I am only responding to tomcat-user)
> Is there any documentation, on jk, jk2 or mod_webapp that explains
> configuring vhosts in a sensible manner that doesn't just go as far as
> http://domain/webappname .. because frankly that bit is easy, and
> suffers from chocolate fire-guard syndrome in terms of it utility.
It is a piece of cake. Using Apache1 or Apache2, mod_jk (I have not tried
mod_jk2 myself) and Tomcat 4.1.27) here are a couple sample configs with 2
vhosts using the root context.
In Apache's httpd.conf, you need these settings for the virtual hosts:
JkWorkersFile <pathto>/tomcat_workers.properties
<VirtualHost *>
ServerName vhost1
JkMount /*.jsp tomcat1
</VirtualHost
<VirtualHost *>
ServerName vhost2
JkMount /*.jsp tomcat1
</VirtualHost
In your tomcat_workers.properties:
worker.list=tomcat1
worker.tomcat1.port=8007
worker.tomcat1.host=localhost
worker.tomcat1.type=ajp13
In your Tomcat's server.xml:
<Host name="vhost1">
<Context path="" docBase="/vhost1/doc-root"/>
</Host>
<Host name="vhost2">
<Context path="" docBase="/vhost2/doc-root"/>
</Host>
I've stripped out all the config settings not related to getting vhosts
working in Apache/Tomcat above, but you should get the idea.
-Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: connectors documents
Posted by Mark Lowe <ma...@talk21.com>.
Yeah i know,
I did.. and now i'm trying a cheeky question to the dev list..
They seem to be more interested in other stuff on the user list..
Given that both tomcat and apache are so great i'm surprised that they
continue to be plagued by this connector business. How many years now?
, I'm not sure, but if there was reason not to use these technologies
then connectors would be it..
I thought a mail to the folks who are involved with this stuff could be
the way forward. Its great to see an example on jk2 and vhosts , it
would be even better if it worked.
So to repeat my question on both lists..
Is there any documentation, on jk, jk2 or mod_webapp that explains
configuring vhosts in a sensible manner that doesn't just go as far as
http://domain/webappname .. because frankly that bit is easy, and
suffers from chocolate fire-guard syndrome in terms of it utility.
If not i would be eternally grateful if anyone could take me through
this, especially if you have a real server in the real world , really
doing this.. I dont care which connector, protocol whatever. If this
does work and if i'm being a dofuss then feedback would be useful..
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html
does this work? Looks like there are 3 files that need amending just to
administer it, but i'll live with it.. So far apache cant find the
workers2.properties.. I have no idea why or how to find out why..
Many thanks in advance
Mark
On Wednesday, October 1, 2003, at 09:47 AM, David Rees wrote:
> On Wed, October 1, 2003 at 1:18 am, Mark Lowe sent the following
>>
>> Despite using tomcat for 3-4 years jakarta connectors has remained the
>> moving goal post. I dont usually have the pleasure of having to get
>> tomcat and apache talking to one another, but i do now.
> <snip>
>
> Subject is really for tomcat-users list. Post the question there and
> I'll
> try to answer.
>
> -Dave
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: connectors documents
Posted by Mark Lowe <ma...@talk21.com>.
Yeah i know,
I did.. and now i'm trying a cheeky question to the dev list..
They seem to be more interested in other stuff on the user list..
Given that both tomcat and apache are so great i'm surprised that they
continue to be plagued by this connector business. How many years now?
, I'm not sure, but if there was reason not to use these technologies
then connectors would be it..
I thought a mail to the folks who are involved with this stuff could be
the way forward. Its great to see an example on jk2 and vhosts , it
would be even better if it worked.
So to repeat my question on both lists..
Is there any documentation, on jk, jk2 or mod_webapp that explains
configuring vhosts in a sensible manner that doesn't just go as far as
http://domain/webappname .. because frankly that bit is easy, and
suffers from chocolate fire-guard syndrome in terms of it utility.
If not i would be eternally grateful if anyone could take me through
this, especially if you have a real server in the real world , really
doing this.. I dont care which connector, protocol whatever. If this
does work and if i'm being a dofuss then feedback would be useful..
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html
does this work? Looks like there are 3 files that need amending just to
administer it, but i'll live with it.. So far apache cant find the
workers2.properties.. I have no idea why or how to find out why..
Many thanks in advance
Mark
On Wednesday, October 1, 2003, at 09:47 AM, David Rees wrote:
> On Wed, October 1, 2003 at 1:18 am, Mark Lowe sent the following
>>
>> Despite using tomcat for 3-4 years jakarta connectors has remained the
>> moving goal post. I dont usually have the pleasure of having to get
>> tomcat and apache talking to one another, but i do now.
> <snip>
>
> Subject is really for tomcat-users list. Post the question there and
> I'll
> try to answer.
>
> -Dave
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: connectors documents
Posted by David Rees <db...@greenhydrant.com>.
On Wed, October 1, 2003 at 1:18 am, Mark Lowe sent the following
>
> Despite using tomcat for 3-4 years jakarta connectors has remained the
> moving goal post. I dont usually have the pleasure of having to get
> tomcat and apache talking to one another, but i do now.
<snip>
Subject is really for tomcat-users list. Post the question there and I'll
try to answer.
-Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org