Hi Sumedha,
On Thu, Jul 11, 2013 at 4:20 PM, Sumedha Kodithuwakku <[email protected]>wrote: > Hi All, > > As an initial work for the requirement of a Unique Identifier for apps (in > aPaaS work), the $subject was done. With this, the user will be able to > map a custom URL for their applications in AF. > > *The requirement* > > By default the app will have a URL similar to ' > appserver.appfactorypreview.wso2.com/t/mywebapp/webapps/mywebapp' and we > need to map that to a URL similar to 'mywebapp.wso2apps.com'. > > *The approach followed:* > * > * > In Stratos Controler's ApplicationManagementService, there is a function > to map domains ( addDomainMapping ). This service was used for the URL > mapping. When the user creates an application in AF, the application > subscribes to the available cartridges and while subscribing the mapping > will be done. The added mapping will be saved in the shared registry > between SC and ELB. Therefore when we send the request to that particular > ELB, it will pick the actual host according to the mapped domain and > forward the request. > > At the moment, we can map the URL as follows. > > appserver.appfactorypreview.wso2.com/t/mywebapp/webapps/mywebapp > ------> mywebapp.wso2apps.com/t/mywebapp/webapps/mywebapp > > The addDomainMapping service in SC only provides mapping as above (in > blue). Therefore we need to improve that so that we can eliminate the 't/ > mywebapp/webapps/mywebapp' part too. > We have been on this before in architecture@. But as we discussed at thread [1], we decided to stop support for mapping application specific custom domains. See the reasons stated there. Thanks. [1] Custom domain mapping implementation with latest changes > > Any suggestions and feedbacks are welcome. > > Thanks > SumedhaS > > -- > *Sumedha Kodithuwakku* > Software Engineer > > WSO2 Inc. : wso2.com > lean . enterprise . middleware > > Mobile : +94718081124 > > > _______________________________________________ > Architecture mailing list > [email protected] > https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture > > -- -- Lahiru Sandaruwan Software Engineer, Platform Technologies, WSO2 Inc., http://wso2.com lean.enterprise.middleware email: [email protected] cell: (+94) 773 325 954 blog: http://lahiruwrites.blogspot.com/ twitter: http://twitter.com/lahirus linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
