It sounded to me like your jsp was separate from your main
document tree. If that was the case, mod_rewrite will do the
job. You can only use the DirectoryIndex if you're working
with static content in the same directory as the jsp content.
Best Regards,
Jason
On Tue, 19 Jun 2001 08:29:52 -0700, Scott Jones wrote:
>Yeah, I thought so too, but it needed the "dummy" file in the static
>directory before it actually worked for me.
>
>I will check into using mod_rewrite -- sounds like a good idea.
>
>Thanks to both of you. :)
>
>-Scott
>
>----- Original Message -----
>From: "Dmitri Colebatch" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, June 18, 2001 7:24 PM
>Subject: Re: Apache Default Document is .jsp?
>
>
>> I would have thought that if you change the DirectoryIndex instruction (I
>> think thats it) in the httpd.conf to use index.jsp first, and you have
>> mounted *.jsp to go to tomcat then it should work. haven't done it myself
>> though.
>>
>> cheers
>> dim
>>
>> On Tue, 19 Jun 2001 10:40, you wrote:
>> > Hello,
>> >
>> > I'm getting ready to setup tomcat and Apache on seperate machines.
>Before
>> > getting started on that project, on my development machine, I set the
>> > default "DocumentRoot" for apache to a different directory (for static
>> > content) than my webapp (which will eventually sit on a different
>machine).
>> >
>> > I'd like to have my "login.jsp" be my default document, but was only
>able
>> > to get it to work by putting a "dummy" login.jsp in the HTML
>directory...
>> > Otherwise, Apache would just show a normal index of the directory...
>> >
>> > Is this the only way to get this to work? Or am I missing somthing?
>BTW,
>> > I'm on Tomcat 3.2.1 and Apache 1.3.19...
>> >
>> > Thanks for any ideas.
>> >
>> > Cheers,
>> >
>> > Scott
>>
>