You need change configuration of Apache. File mod_jk.conf-auto should contain
following line:
JkMount /servlet/* ajp12
You need replace this with:
JkMount /* ajp12
Also in file web.xml shloud be:
<servlet-mapping>
<servlet-name>SnoopServlet</servlet-name>
<url-pattern>/SnoopServlet</url-pattern>
</servlet-mapping>
The problem is: with this configuration everything will be running through
Tomcat.
Jiri Trnka
> Raju Desai
> Mahindra British Telecom LTD,pune.
> Email : [EMAIL PROTECTED]
> Phone : 020-5424301(Ext:1408)
>
>
> ----- Original Message -----
> From: Pier P. Fumagalli <[EMAIL PROTECTED]>
> To: Raju Desai <[EMAIL PROTECTED]>
> Sent: Friday, February 23, 2001 6:17 PM
> Subject: Re: Problem.....About Aliasing
>
>
> > Raju Desai <[EMAIL PROTECTED]> wrote:
> >
> > > Hello,
> > > I am using Apache as my webserver and tomcat as my servlet context.
> > > I am facing the problem in configuring the aliasing for the servlet e.g
> > > Normall the servlets in tomcat_home/roots/classes runs with the
> following URl
> > > in the borwser.
> > >
> > > http://localhost:8080/servlet/SnoopServlet
> > > if i want to run all my servlets with the following URl then what are
> the
> > > changes that i ahve to make in the configuration files and where.
> > > http://localhost:8080/SnoopServlet ( want to run my servlets with
> this
> > > path)
> > >
> > >
> > > In case of javawebserver there is a setting for the invoker servlet and
> we can
> > > set that as / = invoker and it starts working but i was not able to find
> a
> > > similar setting here.
> > > Will u please guide me.I will be highly obliged if u can give me some
> real
> > > piece of useful information.
> >
> > Write to the tomcat-user mailing list
> > --
> > --------------------------------------------------------------------------
> --
> > Pier P. Fumagalli
> <mailto:[EMAIL PROTECTED]>
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]