Thanks Sumedha for carrying out this POC effort. Now we are clear on the
current domain mapping capabilities and limitations.

Yes, we need to eliminate the /t/tenant-domain/webapps/app-name section
from the URL presented to the user. Lets investigate on a way to achieve
this.

Regards,
AmilaM.


On Thu, Jul 11, 2013 at 4:20 PM, Sumedha Kodithuwakku <sumed...@wso2.com>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.
>
> Any suggestions and feedbacks are welcome.
>
> Thanks
> SumedhaS
>
> --
> *Sumedha Kodithuwakku*
> Software Engineer
>
> WSO2 Inc. : wso2.com
> lean . enterprise . middleware
>
> Mobile : +94718081124
>
>


-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
_______________________________________________
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to