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

Re: adding a global URI prefix for Tomcat web apps

2012-04-17 Thread Konstantin Kolinko
2012/4/17 ron.vandenbranden@home ron.vandenbran...@kantl.be: 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

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 the

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 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://backend.example.com/

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

Re: adding a global URI prefix for Tomcat web apps

2012-04-17 Thread Konstantin Kolinko
2012/4/18 ron.vandenbranden@home ron.vandenbran...@kantl.be: 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

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/17 ron.vandenbranden@home ron.vandenbran...@kantl.be:    2. change ${CATALINA.HOME}/conf/server.xml as follows:    Host name=localhost  appBase=webapps unpackWARs=true autoDeploy=false deployOnStartup=false      Context path=/apps/my_app docBase=/my_app/ reloadable=true/    /Host

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@homeron.vandenbran...@kantl.be: 2. change ${CATALINA.HOME}/conf/server.xml as

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'. So I'm specifying

Re: adding a global URI prefix for Tomcat web apps

2012-04-17 Thread Konstantin Kolinko
2012/4/18 ron.vandenbranden@home ron.vandenbran...@kantl.be: 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