Return-Path: Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 1904 invoked from network); 2 Mar 2000 04:35:33 -0000 Received: from bradm.ne.mediaone.net (root@24.128.26.201) by locus.apache.org with SMTP; 2 Mar 2000 04:35:33 -0000 Received: (from brad@localhost) by bradm.ne.mediaone.net (8.9.3/8.9.3) id XAA30438; Wed, 1 Mar 2000 23:35:03 -0500 Date: Wed, 1 Mar 2000 23:35:03 -0500 From: Bradley McLean To: tomcat-dev@jakarta.apache.org Cc: scott@hk.super.net Subject: Re: Servlet as "http://mysite.com/"??? Message-ID: <20000301233503.A30423@bradm.ne.mediaone.net> References: <38BC73E5.9EE4B0D9@hk.super.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3us In-Reply-To: <38BC73E5.9EE4B0D9@hk.super.net> X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N * Scott Deerwester (scott@HK.Super.NET) [000301 21:43]: > > AFAIK, a Tomcat servlet must be referred to as > > http://mysite.com/myservlet/servlet/aservlet/other/info > > either in the standalone server or when hooked up to Apache via JServ, > where /other/info is available to the servlet in the > HttpServletRequest.getRequestURI(). But what I need is for: > > http://mysite.com/other/info > > to call the servlet directly with "/other/info" passed along in > getRequestURI(). Defining a VirtualHost in Apache's httpd.conf doesn't > help, because the DocumentRoot is a physical file location, not a >... What about an apache rewrite rule from http://mysite.com/other/info -> http://mysite.com/myservlet/servlet/aservlet/other/info ?