So you have Multiple websites, with distinct URLs, and you want to host all these web sites in the same OutSystems Platform. Here are three distinct ways you can accomplish this:
You can use SEO site rules to redirect urls to specific applications. For example: you can have the URL http://www.cheapdeals.com go automatically to the /CheapDeals/ application on your server. The URL shown on the browser will be http://www.cheapdeals.com.
You will first need to make sure you follow the instructions on how to set up SEO in this document.
After this is done, go to Service Center, then Administration and then select SEO URLs. There are several types of rules you can configure here, but for our purpose we want to configure a Site Rule. Following the example above you’d create a new Site Rule with the following options:
This method requires manual configuration, but if followed as explained the platform will from then on publish the applications to the websites correctly.
Create the new Website, with any root folder (you can use the same as the default web site - OutSystems Applications do not use this folder);
(recommended) configure your new web site’s application pool recycling settings;
“Add Application”, choose the same Physical Path as the original eSpace’s application and the same Alias as well;
(important) all the producer eSpaces from which this eSpace consumes WebBlocks and Resources MUST exist in the same Web Site. For example, RichWidgets must exist in all web sites if any of the eSpaces deployed there consumes it;
Note: You cannot delete the Application from the default web site (or rather, you can but next time you publish the eSpace the platform will re-create it) .
You use the Zones feature of the OutSystems Platform to selectively deploy applications only to certain frontends. With this done you can configure specific website URLs for specific frontends.
As an example, you can configure frontend 1 to have all eSpaces from application A, and frontend 2 to have all eSpaces from application B. You could then configure frontend A to answer requests for URL http://www.AppA.com and frontend B for URL http://www.AppB.com.
More information on Zones and their configuration in this post.