You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Scott Jones <sc...@on-sitemanager.com> on 2001/06/19 02:40:02 UTC
Apache Default Document is .jsp?
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
Re: Apache Default Document is .jsp?
Posted by Jason Koeninger <jk...@jjcc.com>.
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" <di...@nuix.com.au>
>To: <to...@jakarta.apache.org>
>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
>>
>
Re: Apache Default Document is .jsp?
Posted by Scott Jones <sc...@on-sitemanager.com>.
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" <di...@nuix.com.au>
To: <to...@jakarta.apache.org>
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
>
Re: Apache Default Document is .jsp?
Posted by Dmitri Colebatch <di...@nuix.com.au>.
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
Re: Apache Default Document is .jsp?
Posted by Stephane Meier <bo...@hyperchat.com>.
Hello,
Before doing anything else, switch to Tomcat 3.2.2. It seems a few bugs in this
area were corrected.
Stephane
Re: Apache Default Document is .jsp?
Posted by Jeff Kilbride <je...@kilbride.com>.
You could also have an index.html that uses the meta-refresh tag to
automatically redirect to your login.jsp. This might be a lot easier than
mod_rewrite.
Either way, I would turn off directory browsing in Apache, unless that's
what you really want.
--jeff
----- Original Message -----
From: "Jason Koeninger" <jk...@jjcc.com>
To: <to...@jakarta.apache.org>
Sent: Monday, June 18, 2001 6:25 PM
Subject: Re: Apache Default Document is .jsp?
> Dig through the documentation on mod_rewrite and/or
> look at the Redirect command for Apache. One or both
> of those two should be capable of accomplishing what
> you want.
>
> Best Regards,
>
> Jason Koeninger
> J&J Computer Consulting
> http://www.jjcc.com
>
> On Mon, 18 Jun 2001 17:40:02 -0700, Scott Jones 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
> >
>
>
>
Re: Apache Default Document is .jsp?
Posted by Jason Koeninger <jk...@jjcc.com>.
Dig through the documentation on mod_rewrite and/or
look at the Redirect command for Apache. One or both
of those two should be capable of accomplishing what
you want.
Best Regards,
Jason Koeninger
J&J Computer Consulting
http://www.jjcc.com
On Mon, 18 Jun 2001 17:40:02 -0700, Scott Jones 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
>