You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by LAU ENG HUAT <fa...@pd.jaring.my> on 2001/09/06 05:05:02 UTC

Re: Tomcat v3.3b2 and mod_jk (again)

Larry,

I'm new to Tomcat. I'm having the same problem as Mark. Where does the file
apps-sota.xml should be located because I though Tomcat only looks at files
1. server.xml
2. workers.properties
3. web.xml at the WEB-INF directory.

Could you please help me on this .

Thanks
LAU ENG HUAT

Mark Muffett wrote:

> Larry
>
> Having got yesterday's setup to work, I thought I'd try to go one step
> further (having browsed some of the previous correspondence about mod_jk).
>
> Since sota and sota.silly.domain.net are the same site, I tried making
> apps-sota.xml as follows:
>
> <Server>
>      <Host name="sota">
>        <alias name="sota.silly.domain.net" />
>        <Context path="" docBase="webapps/Sota" />
>      </Host>
> </Server>
>
> This gave me an auto-generated mod_jk.conf as follows:
>
> ########## Auto generated on Fri Sep 07 12:28:23 BST 2001##########
>
> <IfModule !mod_jk.c>
>   LoadModule jk_module /usr/lib/apache/mod_jk.so
> </IfModule>
>
> JkWorkersFile "/opt/jakarta-tomcat-3.3-b2/conf/jk/workers.properties"
> JkLogFile "/opt/jakarta-tomcat-3.3-b2/logs/mod_jk.log"
>
> JkLogLevel emerg
>
> JkMount /examples ajp13
> JkMount /examples/* ajp13
>
> JkMount /admin ajp13
> JkMount /admin/* ajp13
>
> JkMount /Sota ajp13
> JkMount /Sota/* ajp13
>
> JkMount / ajp13
> JkMount /* ajp13
> # To avoid Apache serving root welcome files from htdocs, update
> DocumentRoot
> # to point to: "/opt/jakarta-tomcat-3.3-b2/webapps/ROOT"
>
> NameVirtualHost *
> <VirtualHost *>
>     ServerName sota
>
>     JkMount / ajp13
>     JkMount /* ajp13
>     DocumentRoot "/opt/jakarta-tomcat-3.3-b2/webapps/Sota"
> </VirtualHost>
>
> (no mention of sota.silly.domain.net)
>
> Now sota works, but sota.silly.domain.net doesn't (and
> sota.silly.domain.net:8080 just gives the default tomcat page).
>
> Any thoughts (or should I just go back to what I had before...
>
> Many thanks
>
> Mark