You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Frederic Besnard <fb...@ac-nice.fr> on 2000/05/26 11:04:21 UTC

newbie Q: context summary ?

dear readers,

could someone summary the process of configuration files generation ?

if I understood, tomcat-apache.conf is generated from server.xml, not
from tomcat.conf ?
so, what is the latter for ?

what is the difference between

   * <Context path="/myapp" docBase="c:/myapp" ...> in server.xml
   * Alias          /myapp  c:/myapp                in tomcat.conf
   * ApJServMount   /myapp  c:/myapp                in tomcat.conf

what I am trying to do is to have my web application somewhere out of
the webapps
default location.

where can I find the specifications of theses commands ?

thanx,

-- Frederic

pb with docbase

Posted by Frederic Besnard <fb...@ac-nice.fr>.
Hi Arion, thanks for your answers. I

I think I have found what's going on: whatever I write, the docBase
field of Context tag of servel.xml is ignored, either for absolute or
for relative path.
For example, considering the tag below:

<Context path="/etab" docBase="webapps/dummy" debug="9"
reloadable="true" >  </Context>

and nothing more in tomcat.conf, the following is generated in
tomcat-apache.conf:

Alias /etab C:\prg\Apache-Group\jakarta-tomcat\webapps\etab
<Directory "C:\prg\Apache-Group\jakarta-tomcat\webapps\etab">
    Options Indexes FollowSymLinks
</Directory>
ApJServMount /etab/servlet /etab
<Location /etab/WEB-INF/ >
    AllowOverride None
    deny from all
</Location>

my "dummy" path is always ignored.

very frustating ...

-- Fred


Re: newbie Q: context summary ?

Posted by Arion <ar...@talentinfo.com.hk>.
Hi!

Frederic Besnard wrote:

> dear readers,
>
> could someone summary the process of configuration files generation ?
>
> if I understood, tomcat-apache.conf is generated from server.xml, not
> from tomcat.conf ?
> so, what is the latter for ?

Correct. The latter is for custom configuration not able to be generated
from a single server.xml.

> what is the difference between
>
>    * <Context path="/myapp" docBase="c:/myapp" ...> in server.xml
>    * Alias          /myapp  c:/myapp                in tomcat.conf
>
Tell the apache server all document under /myapp are located at c:/myapp

>    * ApJServMount   /myapp  c:/myapp                in tomcat.conf
>
The correct syntax should be ApJServMount /myapp /myapp
Tell the apache server to redirect everything under /myapp to context
/myapp

As you might find, the alis is redundant in this case.

> what I am trying to do is to have my web application somewhere out of
> the webapps
> default location.

> where can I find the specifications of theses commands ?
>

try the documents under $TOMCAT_HOME/doc

>
> thanx,
>
> -- Frederic

Arion