On 11/12/2010 09:47, Julien Martin wrote:
> Hello,
> I need to achieve the following:
> -Having two domain names pointing to the same tomcat application and MOST
> IMPORTANTLY, having for each domain name a unique context parameter
> (therefore different for each domain name) that I will retrieve in my app to
> display different information to my users accordingly.
> How can I achieve this with tomcat? Is that possible?
> Thanks in advance,
> J.

I guess you'll be using Tomcat 6.0.latest?

If your apps are deployed to the default host, or you've added aliases
for each domain to the same host, you'll have the first part solved.

The second part depends on whether you need to know the domain during a
request processing or some other non-request processing part of the app.

In the former case, you could look up the value you want by using the
requested host name as map key.  Otherwise you will need to deploy the
app once in two separate hosts.


p



Attachment: 0x62590808.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to