how to do auto redirection of a tomcat application

Paul Graydon paul at paulgraydon.co.uk
Fri Feb 25 05:20:52 UTC 2011


On 2/24/2011 4:36 AM, Tapas Mishra wrote:
> On Thu, Feb 24, 2011 at 12:08 PM, Paul Graydon<paul at paulgraydon.co.uk>  wrote:
>
>
>> Yes we do, we use both rules in combination on probably most of the
>> subdomains we host (approximately 70-80 applications under 20-30 subdomains)
>>
>> A few of our apps are named ROOT to allow them to work from /, but in most
>> cases we'll have multiple apps for a particular subdomain so they have
>> distinctive names.
> So in that case those apps must also be generating URL at context root
> /app1 and relative to it.
> If 2 of your applications start generating URIs which begin with / and
> not /app1 or /app2
> then I think even you will need a different ServerName or DNS entry so
> that send that request which forwards the root of site in ProxyPass to
> internal machine.
> I am very sure this situation depends upon how the application is
> generating URLs.
>
Absolutely.  I'm just the sysadmin where I am, I've little or no insight 
into the dev process beyond advising from an infrastructure perspective, 
so I couldn't honestly tell you how they're generating the URIs, I do 
know that some apps are really picky, seem to produce specific URIs, 
like you suggest, whereas others are perfectly happy wherever they're 
aliased to, they seem to be concocting relative URIs.

Paul




More information about the ubuntu-server mailing list