Think you might have missed the intent of our email. If I understand you
correctly you are basically telling us that we can make /context and
/my_directory do the same thing, but we were after how to point
/my_directory at /context/my_directory

We know this is possible to do this is using Apache as it was designed with
aliasing/proxypassing in mind, and tomcat wasn't.   But we are hoping that
purely for development purposes we can remove apache out of the loop
altogether and replicate the aliasing/proxying features in tomcat so our
paths still work correctly.

For deployment (production) in Apache we have a proxy pass that says

proxypass /my_directory http://localhost:8080/context/my_directory

This means we can get rid of the context out of the url for the public
facing part of the site.  However that means that we need Apache for
development as well and I was hoping there would be a cheap way of
replicating this in Tomcat.

Thanks for your response though.  Any other thoughts people?

Regards,

Graeme.

> -----Original Message-----
> From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 22 May 2001 10:29 a.m.
> To: [EMAIL PROTECTED]
> Subject: RE: Aliasing urls in Tomcat (without using Apache)
> 
> 
> Kill apache, run tomcat on port 80 instead of port 8080. and 
> then change
> your server.xml to something like this :
> 
>         <RequestInterceptor
>             className="org.apache.tomcat.request.InvokerInterceptor"
>             debug="0" prefix="/servlet/" />
> 
>         <RequestInterceptor
>             className="org.apache.tomcat.request.InvokerInterceptor"
>             debug="0" prefix="/servlets/" />
> 
> (were using this in coop with apache and are serving the 
> servlets under
> http://<servername>/servlet http://<servername>/servlets
> So this should (never tested it btw..) also run like this 
> without apache.
> 
> Hope you get it working..
> 
> Mvgr,
> Martin van den Bemt
> 
> > -----Original Message-----
> > From: Graeme Miller [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 22, 2001 12:26 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: Aliasing urls in Tomcat (without using Apache)
> >
> >
> > We need a way of aliasing urls in tomcat 3.2.1 so we don't 
> have to set up
> > Apache for local development on our workstations.
> >
> > eg  /mytest needs to resolve to the servlet context 
> /myproject/mytest
> >
> > Is there a way of doing this in Tomcat (perhaps in the server.xml or
> > web.xml?) without involving putting Apache at the front to do a
> > proxy pass?
> >
> > Regards,
> >
> > Graeme.
> >
> 

Reply via email to