Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 58411 invoked from network); 15 Apr 2003 13:04:40 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 15 Apr 2003 13:04:40 -0000 Received: (qmail 11409 invoked by uid 97); 15 Apr 2003 13:06:34 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 11402 invoked from network); 15 Apr 2003 13:06:34 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 15 Apr 2003 13:06:34 -0000 Received: (qmail 55558 invoked by uid 500); 15 Apr 2003 13:04:00 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 55514 invoked from network); 15 Apr 2003 13:04:00 -0000 Received: from unknown (HELO JTURNER) (207.86.123.243) by daedalus.apache.org with SMTP; 15 Apr 2003 13:04:00 -0000 Received: from JTURNER ([127.0.0.1]) by JTURNER with Microsoft SMTPSVC(5.0.2195.5329); Tue, 15 Apr 2003 09:04:00 -0400 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: redirecting requests References: Message-ID: Content-Type: text/plain; charset=iso-8859-15; format=flowed From: John Turner Date: Tue, 15 Apr 2003 09:03:59 -0400 In-Reply-To: User-Agent: Opera7.03/Win32 M2 build 2670 X-OriginalArrivalTime: 15 Apr 2003 13:04:00.0485 (UTC) FILETIME=[7B71A150:01C3034F] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N If you are using a docBase of "ROOT", there must be a directory called ROOT under that Host's appBase. That is where your file goes. So, if you have: and Then your file belongs in $CATALINA_HOME/webapps/ROOT. John On Tue, 15 Apr 2003 14:38:34 +0200, Ilan Azbel wrote: > I am struggling to get this right. > > I am using Turbine on a Linux platform. I have the following in the > server.xml file: > > > > I have created an index.html file that redirects (not a .jsp as mentioned > below) that contains the following code: > > > > > > > I am struggling to understand where I must place this file the directory > structure. I have already copied the file into the following locations > but I > have had no luck: > /usr/tdk-2.2/webapps/appname/docs/index.html > /usr/tdk-2.2/webapps/appname/index.html > /usr/tdk-2.2/webapps/appname/WEB-INF/index.html > /usr/tdk-2.2/webapps/index.html > > > I don't know whether I should create a directory called ROOT inside > "webapps" or what? > > When I type in a URL I either get the message > > ------------------------------------------------------------------- > type: Status report > > message: No Context configured to process this request > > description: The server encountered an internal error (No Context > configured > to process this request) that prevented it from fulfilling this request. > ------------------------------------------------------------------- > > ..or .. > > ------------------------------------------------------------------- > type: Status report > > message: / > > description: The requested resource (/) is not available. > ------------------------------------------------------------------- > > depending on how I fiddle with the entries in server.xml > > Do you have any idea how to interpret the messages? How should I > configure > server.xml and where would be my root directory? > > > Ilan > > >> -----Original Message----- >> From: Tim Funk [mailto:funkman@joedog.org] >> Sent: 15 April 2003 01:30 >> To: Tomcat Users List >> Subject: Re: redirecting requests >> >> >> In your ROOT webapp (see server.xml) create a tiny index.jsp: >> -- >> <%@ page session="false" %> >> <%response.sendRedirect("/appname/servlet/appname/");%> >> -- >> OR >> -- >> <%@ taglib uri="http://java.sun.com/jstl/core/c.tld" prefix="c" %> >> <%@ page session="false" %> >> >> -- >> OR Use ScriptAlias from apache >> OR Use a servlet wich also does the above >> >> >> -Tim >> >> Ilan Azbel wrote: >> > I have a website who's URL looks like this: >> > >> > http://server.mydomain.com/appname/servlet/appname/ >> > >> > I would like users to be able to type in >> > http://server.mydomain.com and be redirected to the above URL >> > >> > How can I do this? >> > >> > Ilan >> > >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >> > >> > >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org