You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Vsevolod (Simon) Ilyushchenko" <si...@cshl.edu> on 2005/09/14 18:04:25 UTC

How to define contexts?

Hassan,

> Well, maybe I misunderstood the original question :-)

No, it's just me unfamiliar with the idea of contexts.
So far I've figured out that there is a file context.xml that can define 
extra parameters for an application, but I'm not sure about:

1) Whether it's possible to direct two contexts at the same codebase.

I'm looking at Catalina/localhost/manager.xml and host-manager.xml, and 
they use different codebases.

2) How to tie a particular context to a particular URL, as you indicate 
below. Currently I have dev and www DNS aliases both pointing to virtual 
host in apache, and these hosts ProxyPass everything to two different 
Tomcat applications (/dev and /pro). Ideally, I'd like to have one 
Tomcat application, but I'm not sure how to list two contexts for one 
application.

Thanks,
Simon


> My presumption was that the same code exists at, say,
>     http://dev.example.com/   and   http://www.example.com
> which are clearly different Contexts, even if they're on the same
> machine being run as virtual hosts.
> 
> So each Context has a Resource addressing the appropriate DB.

-- 

Simon (Vsevolod ILyushchenko)   simonf@cshl.edu
				http://www.simonf.com

Terrorism is a tactic and so to declare war on terrorism
is equivalent to Roosevelt's declaring war on blitzkrieg.

Zbigniew Brzezinski, U.S. national security advisor, 1977-81

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org