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 78079 invoked from network); 1 Sep 2000 06:46:39 -0000 Received: from mercury.sun.com (192.9.25.1) by locus.apache.org with SMTP; 1 Sep 2000 06:46:39 -0000 Received: from taller.eng.sun.com ([129.144.250.34]) by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id XAA12932; Thu, 31 Aug 2000 23:46:08 -0700 (PDT) Received: from eng.sun.com (florence [129.144.251.146]) by taller.eng.sun.com (8.9.3+Sun/8.9.3/ENSMAIL,v1.7) with ESMTP id XAA01532; Thu, 31 Aug 2000 23:46:07 -0700 (PDT) Message-ID: <39AF50E8.C421C98B@eng.sun.com> Date: Thu, 31 Aug 2000 23:47:04 -0700 From: "Craig R. McClanahan" X-Mailer: Mozilla 4.74 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org CC: kkress@ospreypartners.com Subject: Re: web.xml, Apache and url-pattern References: <00090102173504.09743@cc153170-a> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N I don't know if it will solve all your problems, but you might try a of "/cgi_bin/*" instead of "/cgi_bin". The one you are using will only match if the user specifies it exactly, while the one I suggested will match any context-relative path that begins with "/cgi-bin". This is important when you realize that Tomcat issues a redirect from http://localhost/intranet/cgi_bin to http://localhost/intranet/cgi_bin/ which does *not* match the url pattern you are using. Craig McClanahan "Kenneth R. Kress" wrote: > I've been searching the archives all night for an answer to this. I know this > issue has been answered before, but I just can't find it. > > I'm trying to use the url-pattern in my context/WEB-INF/web.xml file to > work. I can change the URL I use *only* when using port 8080 to > talk directly to tomcat. If I talk to Apache, the web.xml directives > seem to have no effect. > > Here's a snippet from web.xml: > > > > AdminSrvlt > > > AdminSrvlt > > > > > AdminSrvlt > > > /cgi_bin > > > > > This is in my $TOMCAT_HOME/conf/server.xml file: > > docBase="webapps/intranet" > debug="0" > reloadable="true"> > > > My tomcat-apache.conf is auto-generated and that's what's included > in my Apache httpd.conf file. > > The following works: > > http://localhost:8080/intranet/cgi_bin > > but this fails: > > http://localhost/intranet/cgi_bin > > This also works (as you would expect): http://localhost/intranet/servlet/AdminSrvlt > > What am I missing? > > Ken. > > -- > Kenneth R. Kress kkress@home.com > kkress@ospreypartners.com -- ==================== See you at ApacheCon Europe ! Session VS01 (23-Oct 13h00-17h00): Sun Technical Briefing Session T06 (24-Oct 14h00-15h00): Migrating Apache JServ Applications to Tomcat