Configuring Rainbow to host multiple portals from the same code and database
Using DNS
You can use dns to tell Rainbow which portal it should display.
For this you need to match you default portal alias with your domain name.
If you run rainbow on
www.myownrainbow.com, or www.myportal.au
change portalalias on db to www.myownrainbow, or www.myportal
If you have this:
<add key="IgnoreFirstDomain" value="true" />
<add key="RemoveWWW" value="false" />
Domain www.mydomain.com -> alias = www.mydomain
Domain mydomain.com -> alias = mydomain
Note that the web site suffix is removed, that suffix may be .com, or .au, .net, ...
If you have this:
<add key="IgnoreFirstDomain" value="true" />
<add key="RemoveWWW" value="true" />
Domain www.mydomain.com -> alias = mydomain
Domain mydomain.com -> alias = mydomain
If you have this:
<add key="IgnoreFirstDomain" value="false" />
<add key="RemoveWWW" value="true" />
Domain www.mydomain.com -> alias = mydomain.com
Domain mydomain.com -> alias = mydomain.com
If you have this:
<add key="IgnoreFirstDomain" value="false" />
<add key="RemoveWWW" value="false" />
Domain www.mydomain.com -> alias = www.mydomain.com
Domain mydomain.com -> alias = mydomain.com
Managing multiple portals using wilcard DNS host
You can easily manage multiple portals on a single web server instance.
If you want to automate all process you need:
- A DNS server
- A WEB server with one dedicate IP address (full automatic)
- Or a web serwer with an ip share with other sites (oe more step for every added portal)
Well, we start configuring our dns:
- Point you server to Administrative Tools and choose DNS
- Open server
- Open Forward Domains
- Open your domain (in this example we will use duemetri.net)
- Right click on domain and choose 'Add new domain...', this will be our new base domain, type Rainbow for example and press Ok
- Now right click on this domain and choose 'New Host...', leave the name blank and insert the correct IP of your web server.
- Update you web.config file to use rainbow.duemetri as default portal and be sure tha main portal alias in DB is rainbow.duemetri.
- At this point if you will type 'rainbow.duemetri.net' you will go to default portal.
- Now add another domain in the rainbow domain just created and type * as name.
- Add an host in this new domain, leave blank the name and fill the ip as you done before. A warn will appear, please ignore and proceed.
- Point to rainbow portal and log as Admin, go to admin all tab and add a new portal (e.g.: test.rainbow.duemetri).
Web server configuration:
- If you have a single ip leave host header blank, all the domains will point to the web server and you do not need any other configuration. All new added portal will function automatically.
- If you have a shared IP for every added portal you must add complete header to web properties.
Using "alias" parameter on querystring
You can easily move from one portal to another using ?alias=portalias.