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
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to