Hi,

I set up the  Apache 2.2 +mod_jk +Tomcat 5.5 works fine.

I have mapping problem between  webapplication  on URL and the directory
name under webapps.

How can I configure the  content of  context file  Tomcat5.5/conf/localhost/
*webapplication.xml*   and httpd.conf file
 to map between (*webapplication*)     http://localhost/*webapplication*
/welcome.do <http://localhost/webapplication/welcome.do>
and          Tomcat5.5/webapps/*booking* directory.

 If I change the directory name  Tomcat5.5/webapps/*booking*  to the  *
webapplication,* the server works fine.


The content of context xml file on   Tomcat5.5/conf/localhost/*
webapplication.xml*:

<Context  path="/*webapplication*" docBase="*booking*"
        debug="5" reloadable="true" crossContext="true">
 ..............
</Context>


*and httpd.conf file*:(short desc)
**

LoadModule jk_module modules/mod_jk-apache-2.2.4.so


<IfModule mod_jk.c>
  JkWorkersFile conf/workers.properties
    JkLogFile logs/mod_jk.log
    JkLogLevel error
    JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
    JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
    JkRequestLogFormat "%w %V %T"

Alias /*webapplication * "C:/www/tomcat5/webapps/booking/"

    <Directory "C:/www/tomcat5/webapps/booking/">
        Options Indexes +FollowSymLinks
        AllowOverride None
        Allow from all
    </Directory>

 <Location /*/WEB-INF/*>
        AllowOverride None
        deny from all
    </Location>

     * JkMount /webapplication/* example*

</IfModule>



Thanks for your help.

MK
-- 
Massoud

Reply via email to