Yes, but this doesn't work if you use "index.jsp" as the DirectoryIndex, unless someone has figured out how to do it in the last couple of months. It's an FAQ, or at least it was last fall, there were threads once a week or more for awhile. It has to do with the sequence of checking the URL to see if the request should be passed to mod_jk...it seems to happen before Apache consults DirectoryIndex, so as the request is sent to Tomcat, it doesn't have "index.jsp" attached to it yet.


The sequence should be: does the request have a filename, if not append file listed in DirectoryIndex, then check to see if URL should be handled by mod_jk. It seems to happen in the reverse, right now, so the DirectoryIndex check never happens.

John

On Thu, 27 Mar 2003 13:56:56 -0700, Jeremy Whitlock <[EMAIL PROTECTED]> wrote:

Or, just screw IIS and go to Apache.  With Apache, you can tell it what
pages to serve if no page is put into the url.  (DirectoryIndex
index.html index.html.var default.htm)

-----Original Message-----
From: John Turner [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 1:57 PM
To: Tomcat Users List
Subject: Re: Tomcat and IIS



AFAIK, the only way to do this when using Tomcat in conjunction with a
web server is a kludge. I do it by making index.html my default home page,
and having index.html be nothing but a meta refresh page with a time of "0"
to http://www.foo.com/index.jsp. There are other ways...some Apache folks
use mod_rewrite.


This means index.jsp will show up in the address bar of the browser. If

you don't want that, I'm not sure you can do it. I don't know enough
about IIS to know if there is a more elegant way to do it.

If you want to use Tomcat alone, you setup a welcome-file tag/element in

your application's web.xml file that has index.jsp as a parameter.

John

On Thu, 27 Mar 2003 12:47:17 -0800, jsp <[EMAIL PROTECTED]> wrote:

I'm trying to get away from ASP. The top file of my website is an
index.jsp page. I set the root directory for the website to
\<Catalina_home>\webapps\MyWebsite

So when you go to http://www.mywebsite.com the default page in iis is
index.jsp but I'm positive that is the wrong way to do this because
the
only way jsp will work is if you type into the browser

http://www.mywebsite.com/MyWebsite/index.jsp

maybe this is not a tomcat related question but I'm hoping someone
could
be doing this and give me some type of CLUE ?

Basically when you go to http://www.mywebsite.com I want the top file
to
be a functioning .jsp page because I don't want to use an ASP stats
program.

Hopefully it makes sense

-wiley






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]








-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to