Re: adding a global URI prefix for Tomcat web apps

2012-04-18 Thread Ron Van den Branden
Hi, Thanks a million for guiding me through these hoops, and your patience with my confused anxiety to get this sorted out. It now works (of course) with these settings, and allows for a quite nice compromise. I'll briefly summarize problem and solution, if it can help others. The starting p

Re: adding a global URI prefix for Tomcat web apps

2012-04-17 Thread Konstantin Kolinko
2012/4/18 ron.vandenbranden@home : > Hi, > > Sorry if I'm being a bit dense, but could I check if I'm understanding > correctly? I can't get it working with your suggestions. > > > On 18/04/2012 0:04, Konstantin Kolinko wrote: >> >> 2012/4/17 ron.vandenbranden@home: >>> >>>    2. change ${CATALINA.

RE: adding a global URI prefix for Tomcat web apps

2012-04-17 Thread Caldarale, Charles R
> From: ron.vandenbranden@home [mailto:ron.vandenbran...@kantl.be] > Subject: Re: adding a global URI prefix for Tomcat web apps > I have my webapps located at F:\tomcatApps (so outside of the catalina > tree), where 'my_app' lives in a folder named 'apps#my_app

Re: adding a global URI prefix for Tomcat web apps

2012-04-17 Thread ron.vandenbranden@home
Hi, Sorry if I'm being a bit dense, but could I check if I'm understanding correctly? I can't get it working with your suggestions. On 18/04/2012 0:04, Konstantin Kolinko wrote: 2012/4/17 ron.vandenbranden@home: 2. change ${CATALINA.HOME}/conf/server.xml as follows: M

Re: adding a global URI prefix for Tomcat web apps

2012-04-17 Thread Konstantin Kolinko
2012/4/17 ron.vandenbranden@home : >    2. change ${CATALINA.HOME}/conf/server.xml as follows: > >     autoDeploy="false" deployOnStartup="false"> >       >     > More comment on the above, as you have already read the docs. Putting element into server.xml is considered a bad practice. Instead

Re: adding a global URI prefix for Tomcat web apps

2012-04-17 Thread ron.vandenbranden@home
Hi, On 17/04/2012 22:49, Konstantin Kolinko wrote: No. It is Cocoon that is broken. There is File -> URL conversion somewhere that does not encode characters properly, and '#' should be %-encoded if it is in an URL. Last time it was discussed on this list was several years ago. Either it is a

Re: adding a global URI prefix for Tomcat web apps

2012-04-17 Thread Konstantin Kolinko
2012/4/18 ron.vandenbranden@home : > Hi Konstantin, > > Many thanks for your excellent suggestion. Sorry, I forgot to mention that > I'm running Tomcat-7.0.27, so that should work. > > > On 17/04/2012 17:27, Konstantin Kolinko wrote: >> >> I would not comment on the Apache HTTP server configuration

Re: adding a global URI prefix for Tomcat web apps

2012-04-17 Thread ron.vandenbranden@home
Hi Konstantin, Many thanks for your excellent suggestion. Sorry, I forgot to mention that I'm running Tomcat-7.0.27, so that should work. On 17/04/2012 17:27, Konstantin Kolinko wrote: I would not comment on the Apache HTTP server configuration. Just on the quoted part above. You have not tol

Re: adding a global URI prefix for Tomcat web apps

2012-04-17 Thread shahrzad mirmorad
On Apr 18, 2012 12:43 AM, "ron.vandenbranden@home" < ron.vandenbran...@kantl.be> wrote: > Hi Pid, > > Thanks for your suggestion. > > On 17/04/2012 21:16, Pid wrote: > >> From the docs: >> >> ProxyPass/mirror/foo/ http://backend.example.com/ >> ProxyPassReverse /mirror/foo/ http://backe

Re: adding a global URI prefix for Tomcat web apps

2012-04-17 Thread ron.vandenbranden@home
Hi Pid, Thanks for your suggestion. On 17/04/2012 21:16, Pid wrote: From the docs: ProxyPass/mirror/foo/ http://backend.example.com/ ProxyPassReverse /mirror/foo/ http://backend.example.com/ http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreverse ProxyPassReverse

Re: adding a global URI prefix for Tomcat web apps

2012-04-17 Thread Pid
On 17/04/2012 13:25, ron.vandenbranden@home wrote: > Hi, > > I am setting up a reverse proxy configuration where all requests whose > path starts with '/apps/' should be proxied by Apache to Tomcat. This > IMO has 2 benefits: it makes it possible to reserve proxying to only the > '/apps/' part of

Re: adding a global URI prefix for Tomcat web apps

2012-04-17 Thread Konstantin Kolinko
2012/4/17 ron.vandenbranden@home : > > So far, so good. Yet, I am struggling with the Tomcat side of this approach: > finding a way to add a global path prefix for requests to Tomcat apps. The > closest I got was this: >    1. don't touch the physical location of the Tomcat apps: leave them at > ${

adding a global URI prefix for Tomcat web apps

2012-04-17 Thread ron.vandenbranden@home
Hi, I am setting up a reverse proxy configuration where all requests whose path starts with '/apps/' should be proxied by Apache to Tomcat. This IMO has 2 benefits: it makes it possible to reserve proxying to only the '/apps/' part of the URI space, and to use only a single proxy rule for all