Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 63284 invoked from network); 14 Sep 2000 10:17:17 -0000 Received: from ts12-141.dublin.indigo.ie (HELO InterJet.lionet.ie) (194.125.172.141) by locus.apache.org with SMTP; 14 Sep 2000 10:17:17 -0000 Received: (from daemon@localhost) by InterJet.lionet.ie (8.8.5/8.8.5) id LAA12795 for ; Thu, 14 Sep 2000 11:11:10 +0100 (IST) Received: from UNKNOWN(194.125.214.82), claiming to be "lionet.ie" via SMTP by InterJet.lionet.ie, id smtpdH12791; Thu Sep 14 10:11:04 2000 Sender: pierren@lionet.ie Message-ID: <39C0A3BE.8FF48F13@lionet.ie> Date: Thu, 14 Sep 2000 11:09:02 +0100 From: Pierre Neihouser X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.15pre3 ppc) X-Accept-Language: en MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org Subject: Re: How for apache to allow tomcat to handle directories url (/mydir -> myServlet) References: <39BF1270.B3D5A56@ni4u.com> <39BF9B20.28060A93@marvel.ch> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N ARNOD-PRIN Samuel wrote: > With servlet mapping, all html and jsp pages are redirected to myservlet No, servlet mapping allow you to map a class file to a URL. HTML pages will be served by Apache or Tomcat directly and JSP will be served by Tomcat directly. That's why it is called Servlet Mapping. > and I would like that directory -url are redirected too. > > when I call > > http://localhost/mydir > Apache knows it is in fact http://localhost/mydir/defaultpage.html > but for tomcat, the url is the first one... That's a different problem, if you want Tomcat to use a default page when you type the URL of a folder you have to make some changes in you web.xml or server.xml file. This is specified in the Minimalistic User Guide (tomcat_ug.html) that you can find in the doc folder of your Tomcat install. -- Pierre