Ok, if you're using apache, then the first thing apache does when it gets
a request for a directory is look for the DirectoryIndex
instruction. typically this will be set to index.html index.htm index.jsp
etc. The way this works is that apache will first check index.html, then
index.htm, then index.jsp and serve whichever comes first.
the second part of the equation is the JkMount directives. Say you create
a directive
JkMount /MyHomePageServlet ajp13
then you can set
DirectoryIndex MyHomePageServlet index.html index.htm index.jsp
and afaik apache should route the request for / to tomcat, and tomcat will
know how to serve /MyHomePageServlet.
just a warning this is all theory, I haven't tested it, but I think the
concepts are right.
hth, cheesr
dim
>
>
> ----- Original Message -----
> From: "naveen" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, August 26, 2001 9:29 PM
> Subject: how to make a servlet as the home page
>
>
> > hi ,
> > I am using tomcat and apache, I want to make a servlet as the home page of
> > my web site,
> > when i access http://www.mysite.com/, a servlet needs to be called and the
> > most important thing in this is I need to access HTTP variables like
> Remote
> > Host, etc.
> > thanks in advance
> >
> >
>
>