Thanks Noel, It's exactly what I wanted to know
Thanks a lot!
-----Message d'origine-----
De: Noel E. Lecaros [SMTP:[EMAIL PROTECTED]]
Date: mardi 24 avril 2001 15:55
A: [EMAIL PROTECTED]
Objet: Re: URL to catch servlets
Hi, David
You didn't specify whehter you were using mod_jserv or mod_jk. On mod_jk
anyway, I add the following line into /tomcat/conf/mod_jk.conf:
JkMount /workDirectory/* ajp12
and then I put this into Apache's httpd.conf:
Include /tomcat/conf/mod_jk.conf
When Tomcat starts up, a file named mod_jk.conf-auto is generated. I used
this file as the basis for mod_jk.conf.
Note that this configuration will cause Apache to forward ALL requests
beginning with /workDirectory to your web app, including static content.
Regards,
Noel Lecaros
David DELGRANCHE wrote:
> Hi all,
>
> I'm using Tomcat 3.2.1 with Apache on WinNT. I have defined in the
> server.xml conf file the directory I wanted to put my servlets. I named it
> workDirectory. All my servlets are in the subdirectory:
> workDirectory/web-inf/classes/ and I can access them by
> http://localhost/workDirectory/servlet/nameOfServlet.
> What I would like to do is to access them by the following URL:
> http://localhost/workDirectory/nameOfServlet
> Does anyone know which modifications I have to do in the Tomcat
> Configuration to do this?
> Thanks for help
> David.
>
> David DELGRANCHE
> [EMAIL PROTECTED]
> Tel: 02.99 05.34.25
> Fax: 02.99.05.34.05
> Sogitec Industries
> 24, Avenue Lavoisier
> ZI du Champ Niguel
> 35174 BRUZ CEDEX