The quick way is to simply put 

<META HTTP-EQUIV="Refresh" CONTENT="0; URL=myproject/welcome.jsp">

into the head portion of index.html.

If you're talking about making "/myproject" equal to "/" so that site
visitors don't see "myproject" in the URL, I think you can do that in
server.xml by changing the Context element, something like this:

Context path="" docBase="/some/path/to/myproject"

That makes "myproject" the default webapp for that particular Host.  Then
you will need to edit web.xml in your project/app so that welcome.jsp is
listed as a valid welcome file.

John


> -----Original Message-----
> From: Christie I [mailto:christie_iii@;yahoo.com]
> Sent: Thursday, October 24, 2002 2:57 PM
> To: Tomcat Users List
> Subject: RE: Apache-Tomcat
> 
> 
> 
>  Hi John
> I have installed mod_jk and it was working fine. I mean the 
> integration. 
> http://1.1.1.1/index.html --- working fine
> http://1.1.1.1/myproject/welcome.jsp -- works fine 
> But i want
> http://1.1.1.1/welcome.jsp
> Hope you now got my problem?
>   "Turner, John" &lt;[EMAIL PROTECTED]&gt; wrote: 
> First, I would make sure that http://1.2.3.4:8080 works as it 
> should. Port
> 8080 is the default HTTP port for Tomcat in Stand-alone mode. 
> 
> Once that is working, then you can start putting Apache into the
> environment, and at that time you will need to decide which 
> Apache-Tomcat
> connector to use (JK or JK2) and then configure that connector
> appropriately. Note that using Apache is not necessary, you 
> should use it
> only if you need to use it. Tomcat does fine as a lightweight, general
> purpose HTTP server as long as you don't need Apache's features.
> 
> Once you get to the connector stage, you can search the 
> archives or post
> back here with more specific information (like OS, etc). This 
> topic comes
> up several times a day.
> 
> You can also check the connector documentation (and perhaps 
> it would be a
> good idea to glance at all of the other documentation too) at:
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html
> 
> John
> 
> 
> > -----Original Message-----
> > From: Christie I [mailto:christie_iii@;yahoo.com]
> > Sent: Thursday, October 24, 2002 2:28 PM
> > To: [EMAIL PROTECTED]
> > Subject: Apache-Tomcat
> > 
> > 
> > 
> > Hi
> > 
> > Im using Apache 1.3.27 and Tomcat 4.0.4. Iam new bie to this. 
> > I have my apache home page to be set with my 
> > webapps/myproject/welcome.jsp file ? how to do this?
> > 
> > /webapps/myproject/welcome.jsp
> > 
> > when i type in the browser http://1.2.3.4/ i should get my 
> > welcome.jsp page ? How to do this
> > 
> > Thanks a lot..
> > 
> > rgds
> > 
> > 
> > 
> > 
> > ---------------------------------
> > Get a bigger mailbox -- choose a size that fits your needs.
> > 
> 
> --
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
> 
> 
> 
> 
> ---------------------------------
> Get a bigger mailbox -- choose a size that fits your needs.
> 

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to