Sorry, I didn't pay attention to blanks in the syntax, so:
JkMount /lansa /CGI-BIN ajp13
isn't valid, but:
JkMount /lansa/CGI-BIN ajp13
is, though I don't think this will accomplish what
you want. Mod_jk doesn't do rewriting. If a request
comes in as "http://192.168.0.247/CGI-BIN/..." that you
want to go to Tomcat, using mod_jk alone, you would have
to use something like:
JkMount /CGI-BIN ajp13
JkMount /CGI-BIN/* ajp13
and in Tomcat, serve the "lansa" web application as
"CGI-BIN", i.e. in server.xml have something like:
<Context path="/CGI-BIN" docBase="<path to lansa>" ... />
Assuming you only want "CGI-BIN" requests for certain
servlets, then use:
JkMount /CGI-BIN/<url-pattern for servlet from web.xml> ajp13
If you want to avoid serving the "lansa" webapp as "/CGI-BIN",
and use "lansa" in the JkMount directive, you will need to
use something like mod_rewrite to do the conversion from "CGI-BIN"
to "lansa".
Cheers,
Larry
> -----Original Message-----
> From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 31, 2002 11:48 AM
> To: Tomcat Users List
> Subject: RE: URL to servlet mapping with mod_jk
>
>
> I modified my mod_jk.conf to the following
>
> JkMount /lansa /CGI-BIN ajp13
> JkMount /lansa /CGI-BIN/* ajp13
>
> but http://192.168.0.247/CGI-BIN/LANSAWEBReset
> comes up with:
> "Not Found
> The requested URL /CGI-BIN/LANSAWEBReset was not found on
> this server."
>
> yet http://192.168.0.247:8080/lansa/LANSAWEBReset
> works.
>
> Sorry if the question looks dumb but I didn't see where
> was the URL part in your explaination.
>
> Dom
>
>
> -----Original Message-----
> From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
> Sent: 31 January 2002 16:05
> To: 'Tomcat Users List'
> Subject: RE: URL to servlet mapping with mod_jk
>
>
> The syntax for JkMount is something like:
>
> JkMount /<ctx path> [/<more path> ] [ / | /* | /*.<ext> ] <worker>
>
> The <ctx path> has to match up with the context path in use
> by Tomcat, i.e. the <Context path="<ctx path>" ... /> or equivalent
> if auto-served. If the remainder of the mapping matches the request,
> it will be passed to Tomcat where it should correspond to
> servable content.
>
> Cheers,
> Larry
>
> > -----Original Message-----
> > From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 31, 2002 10:54 AM
> > To: Tomcat Users List
> > Subject: RE: URL to servlet mapping with mod_jk
> >
> >
> > >>I believe "*ajp13" should be just "ajp13"
> > Sorry I mistyped
> >
> > I definitely had
> >
> > JkMount /MyURL ajp13
> > JkMount /MyURL/* ajp13
> >
> > but it still doesn't work.
> > I get the following message when I try
> > to access it:
> > "Not Found (404)
> > Original request: /CGI-BIN/LANSAWEBReset Not found request:
> > /CGI-BIN/LANSAWEBReset"
> >
> > so in mod_jk I had
> >
> > JkMount /CGI-BIN ajp13
> > JkMount /CGI-BIN/* ajp13
> >
> > is it failing because my app is called "lansa"
> > and therefore doesn't share the same name as the URL ?
> >
> > Dom
> >
> >
> >
> > -----Original Message-----
> > From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
> > Sent: 31 January 2002 13:54
> > To: 'Tomcat Users List'
> > Subject: RE: URL to servlet mapping with mod_jk
> >
> >
> >
> >
> > > -----Original Message-----
> > > From: Cressatti, Dominique
> [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, January 31, 2002 8:29 AM
> > > To: Tomcat Users List
> > > Subject: RE: URL to servlet mapping with mod_jk
> > >
> > >
> > > Oh I've got that right!
> > > http://myhost:8080/MyApp/MyServlet
> > > works.
> > > but how do I change the URL that mod_jk publish.
> > >
> > > In tomcat4 I would have in web.xml
> > >
> > > ...
> > > <servlet-mapping>
> > > <servlet-name>MyServlet</servlet-name>
> > > <url-pattern>/MyServletURL</url-pattern>
> > > </servlet-mapping>I
> > > ...
> > >
> > > and in my http.conf
> > > ...WebAppDeploy MyApp WarpConnection /MyURL
> > >
> > > so I can do
> > > http://myhost/MyURL/MyServletURL
> > >
> > > What's the equivalent with mod_jk ?
> > >
> > > Having looked so far at tomcat3 + mod_jk
> > > and http://myhost/example/soop works
> > > and tried adding in mod_jk.conf
> > >
> > > JkMount /MyURL *ajp13
> > > JkMount /MyURL/* *ajp13
> >
> > I believe "*ajp13" should be just "ajp13". These two
> > mappings would send all requests to Tomcat/Catalina.
> > This is the simplest way to map the whole web application
> > to Tomcat. You can use:
> >
> > JkMount /MyURL/MyServlet ajp13
> >
> > to map only the servlet. You would need to supply any
> > additional mappings and Apache config needed to have
> > your web application work successfully.
> >
> > Larry
> >
> > >
> > > but that doesn't work. why?
> > >
> > > Dom
> > >
> > >
> > > -----Original Message-----
> > > From: Matt Egyhazy [mailto:[EMAIL PROTECTED]]
> > > Sent: 31 January 2002 13:13
> > > To: Tomcat Users List
> > > Subject: Re: URL to servlet mapping with mod_jk
> > >
> > >
> > > look at documentation on the <servlet> and <servlet-mapping>
> > > elements in the
> > > web.xml.
> > >
> > > matt
> > > ----- Original Message -----
> > > From: "Cressatti, Dominique" <[EMAIL PROTECTED]>
> > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > Sent: Thursday, January 31, 2002 4:34 AM
> > > Subject: URL to servlet mapping with mod_jk
> > >
> > >
> > > quick question:
> > > how do I map a servlet to a URL using mod_jk
> > > eg I have /MyApp/WEB-INF/classes/dir1/dir2dir3/MyServlet.class
> > > and I want that to http://host/MyApp/MyServlet
> > >
> > >
> > > Thanks
> > >
> > > Dom
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe:
> > <mailto:[EMAIL PROTECTED]>
> > > For additional commands:
> > <mailto:[EMAIL PROTECTED]>
> > > Troubles with the list:
> > <mailto:[EMAIL PROTECTED]>
> > >
> > >
> > > --
> > > To unsubscribe:
> > <mailto:[EMAIL PROTECTED]>
> > > For additional commands:
> > <mailto:[EMAIL PROTECTED]>
> > > Troubles with the list:
> > <mailto:[EMAIL PROTECTED]>
> > >
> >
> > --
> > To unsubscribe:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands:
> <mailto:[EMAIL PROTECTED]>
> > Troubles with the list:
> <mailto:[EMAIL PROTECTED]>
> >
> >
> > --
> > To unsubscribe:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands:
> <mailto:[EMAIL PROTECTED]>
> > Troubles with the list:
> <mailto:[EMAIL PROTECTED]>
> >
>
> --
> To unsubscribe: <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe: <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>