Hi,

@kasun,

Yes. if a tenant uploads a webapp to a virtual host, user can invoke it
(eg: a super user can invoke via http://www.vhost.com:9763
<http://www.vhost1.com:9763/>/Calender <http://www.vhost.com:9763/> while a
tenant invoke service via http://www.vhost.com:9763
<http://www.vhost1.com:9763/>/t/wso2.com/Calender
<http://www.vhost.com:9763/>). My initial concern was that when an webapp
is uploaded to tenant space (eg: repository/tenants/1/dir/), the webapp get
deployed to super tenant appBase location
(repository/deployment/server/dir/) with name of the context (eg:t#
wso2.com#Calender). I guess this is due to misleading deployment directory
in my implementation and I will try fix it.

@Azeez, Sagara,

Ok, If we don't need to have virtual host support for tenants I will remove
that option from the UI.

Thanks,
Nipuni

On Tue, Sep 23, 2014 at 6:46 PM, Sagara Gunathunga <[email protected]> wrote:

>
>
> On Tue, Sep 23, 2014 at 6:29 PM, Afkham Azeez <[email protected]> wrote:
>
>> Since it is very tricky to implement vhost support for normal tenants, we
>> are better off not exposing this for tenants, so, in the UI, the tenant
>> should not see the vhost option, or, to make things simple, only the
>> default host should be shown.
>>
>
> +1 This is my opinion too. Mixing VHosts with tenancy model can be very
> tricky and need lot of considerations but right now we don't have any
> demand for such feature.
>
> Thanks !
>
>>
>> On Tue, Sep 23, 2014 at 6:09 PM, Nipuni Perera <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> I am working on an improvement for WSO2-AS to enable tomcat virtual host
>>> support [1].  With the current improvements we support the creation of
>>> additional virtual hosts as required by the users. A user need to modify
>>> catalina-server.xml (inside <CARBON-HOME>/repository/conf/tomcat/) to add
>>> an additional host to tomcat as below.
>>>
>>>     <Engine name="Catalina" defaultHost="localhost">
>>>     ...
>>>       <Host name="localhost" unpackWARs="true" deployOnStartup="false"
>>> autoDeploy="false"
>>> appBase="${carbon.home}/repository/deployment/server/webapps/">
>>>           ...
>>>       </Host>
>>>       <Host name="www.vhost.com" unpackWARs="true"
>>> deployOnStartup="false" autoDeploy="false"
>>> appBase="${carbon.home}/repository/deployment/server/dir/">
>>>          ...
>>>       </Host>
>>>     </Engine>
>>>
>>> Therefore this feature (adding virtual hosts) is only available for the
>>> super tenant. Does a tenant should be able to add webapps to virtual
>>> hosts?. Image below (webapp-upload-page.png) shows the webapp upload page
>>> (for both tenants and super tenant) according to the current
>>> implementation. Users can select under which host name the uploaded webapp
>>> should deploy to. Does this option should visible for tenants as well?
>>> ​
>>>  webapp-upload-page.png
>>> <https://docs.google.com/a/wso2.com/file/d/0B3LbkLV5KkU_MFFpWlVUbHpPQmM/edit?usp=drive_web>
>>> ​
>>> [1] https://wso2.org/jira/browse/WSAS-1727
>>>
>>> Thanks,
>>> Nipuni
>>> --
>>> Nipuni Perera
>>> Software Engineer; WSO2 Inc.; http://wso2.com
>>> Email: [email protected]
>>> Git hub profile: https://github.com/nipuni
>>> Mobile: +94 (71) 5626680
>>> <http://wso2.com>
>>>
>>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * <http://www.apache.org/>*
>> *email: **[email protected]* <[email protected]>
>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>> *http://blog.afkham.org* <http://blog.afkham.org>
>> *twitter: **http://twitter.com/afkham_azeez*
>> <http://twitter.com/afkham_azeez>
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> <http://lk.linkedin.com/in/afkhamazeez>*
>>
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
> Sagara Gunathunga
>
> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
> V.P Apache Web Services;    http://ws.apache.org/
> Linkedin; http://www.linkedin.com/in/ssagara
> Blog ;  http://ssagara.blogspot.com
>
>


-- 
Nipuni Perera
Software Engineer; WSO2 Inc.; http://wso2.com
Email: [email protected]
Git hub profile: https://github.com/nipuni
Mobile: +94 (71) 5626680
<http://wso2.com>
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to