Mark,
Yes, there should be a mention of "sota.silly.domain.net". Assuming
an accurate cut and paste, try capitalizing the 'a' in "<alias ...>"
and try again.
The "Alias" approach does have the effect of mapping "sota" and
"sota.silly.domain.net" to the same context. This could be seen as
an advantage or disadvantage depending on your requirements.
Cheers,
Larry
> -----Original Message-----
> From: Mark Muffett [mailto:markm@muffett.net]
> Sent: Friday, September 07, 2001 7:48 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Tomcat v3.3b2 and mod_jk (again)
>
>
> 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
>
|