You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by tb323 <to...@gmail.com> on 2007/05/03 15:04:54 UTC
Tomcat context issue
Hi there!
This is probably a dumb question if you're not a newbie like me. I just
installed Tomcat 6.0.10 on Ubuntu Feisty and I'm having some problems
configuring it.
I'm attempting to move the appBase into a directory under my public_html.
In server.xml I have this:
<Host name="localhost"
appBase="/home/tb323/projects/www/public_html/webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
This way I want to be able to start an app by going to
http://www.domain.com/webapps/appName
I also have Apache + Php on my server so in apache2.conf I've added :
JkMount /*.jsp ajp13_worker
JkMount /*.war ajp13_worker
JkMount /webapps/* ajp13_worker
Is there a way to avoid writing context.xmls for every webapp I place in the
appBase?
Like it is now Tomcat is looking for app at "/webapps/appName" while it
should be looking for "/appName" ..
// Tommy
--
View this message in context: http://www.nabble.com/Tomcat-context-issue-tf3686346.html#a10304508
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Tomcat context issue
Posted by tb323 <to...@gmail.com>.
Thanks for the extremely quick reply. :)
I'll check this out after work.
/Tommy
Caldarale, Charles R wrote:
>
>> From: tb323 [mailto:tommy.blomberg@gmail.com]
>> Subject: Tomcat context issue
>>
>> In server.xml I have this:
>>
>> <Host name="localhost"
>> appBase="/home/tb323/projects/www/public_html/webapps"
>> unpackWARs="true" autoDeploy="true"
>> xmlValidation="false" xmlNamespaceAware="false">
>>
>> This way I want to be able to start an app by going to
>> http://www.domain.com/webapps/appName
>
> Normally, you wouldn't put "webapps" in the URL, since it's already part
> of the appBase. However, since you want to use that to route requests
> from httpd to Tomcat, you'll need something to strip it out along the
> way. A valve in Tomcat could do the job; there's probably something in
> httpd that will do it as well.
>
>> JkMount /*.war ajp13_worker
>
> The *.war setting is useless, since there won't be any direct requests
> with a .war extension.
>
> - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Tomcat-context-issue-tf3686346.html#a10305254
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Tomcat context issue
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: tb323 [mailto:tommy.blomberg@gmail.com]
> Subject: Tomcat context issue
>
> In server.xml I have this:
>
> <Host name="localhost"
> appBase="/home/tb323/projects/www/public_html/webapps"
> unpackWARs="true" autoDeploy="true"
> xmlValidation="false" xmlNamespaceAware="false">
>
> This way I want to be able to start an app by going to
> http://www.domain.com/webapps/appName
Normally, you wouldn't put "webapps" in the URL, since it's already part
of the appBase. However, since you want to use that to route requests
from httpd to Tomcat, you'll need something to strip it out along the
way. A valve in Tomcat could do the job; there's probably something in
httpd that will do it as well.
> JkMount /*.war ajp13_worker
The *.war setting is useless, since there won't be any direct requests
with a .war extension.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org