RE: changing application behaviour according to domain name
RE: changing application behaviour according to domain name
- Subject: RE: changing application behaviour according to domain name
- From: <email@hidden>
- Date: Thu, 30 Jun 2005 15:02:46 +0200
- Thread-topic: changing application behaviour according to domain name
Hi!
There are many ways depending on what exactly you want to achieve.
Will you have one server to host all domains or merely deploy the same code to different servers each responsible for one domain. With the latter setup I would note all that differentiates the environments in property files differing on each machine.
Should you want to host all on one machine you could either chose to have distinct sets of application instances for each domain or have a single set of instances each able to handle requests for all domains. In the latter setup I would suggest to initialize the environment based on the URI information in the request that triggers session creation.
With one application instance configured to handle a specific domain name there are again two possibilities:
1. A single WOTask managing several sets of instances of the same application code base. YOu declare several applications in JavaMonitor and have them point to the same installed application bundle. Customization of the application is made at startup based on a command line argument. This may well be the application name. Using Apache virtual hosts you could rewrite / to point to applications URLs differing for each host.
2. You could set up several distinct application server environments, each with their own WOTask and Apache. An additional front-end Apache could serve as proxy to these. The front end APache would have several virtual host each proxy to one application environment.
Pierre
-----Original Message-----
From: webobjects-dev-bounces+pierre.bernard=email@hidden
[mailto:webobjects-dev-bounces+pierre.bernard=email@hidden]On
Behalf Of Guido Neitzer
Sent: Thursday, June 30, 2005 2:07 PM
To: WebObjects Development
Subject: changing application behaviour according to domain name
Hi.
I'm looking for a good way to deplay one application for several
domain names and change the behaviour as needed (dynamically load
different stylesheets, load special content from the db, show
different components, links and so on).
Is there a good way to do this?
cug
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
**********************************************************************
This email and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender
of this message. (email@hidden)
This email message has been checked for the presence of computer
viruses; however this protection does not ensure this message is
virus free.
Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
**********************************************************************
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden