We already have a map of "unique key" to "URL". That needs to be stored somewhere. Possibly the Config Registry of the relevant Service cluster. On component initialization, you have to read that back from the Config Registry, and then create the virtual hosts.
So, creating virtual hosts after Tomcat server startup is working? On Fri, Mar 2, 2012 at 3:00 PM, Reka Thirunavukkarasu <r...@wso2.com> wrote: > Hi > > I could dynamically create virtual host and deploy web apps into it as > root. So that now user can give their own domain and access the web app > through the domain as root. > > But when restarting the server, we need to create all required virtual > host since we don't have any entry in the catalina-server.xml. So, the > solution can be to store the host's properties into registry and use it in > the server start up to create virtual host. > > Could you provide feedback on this? > > Regards, > Reka > > > > On Wed, Feb 29, 2012 at 2:35 PM, Reka Thirunavukkarasu <r...@wso2.com>wrote: > >> I'll check that too and update on it. >> >> >> On Wed, Feb 29, 2012 at 2:23 PM, Afkham Azeez <az...@wso2.com> wrote: >> >>> One additional issue you may face is not being able to add virtual hosts >>> at runtime. You will have to check that. >>> >>> >>> On Wed, Feb 29, 2012 at 2:20 PM, Reka Thirunavukkarasu <r...@wso2.com>wrote: >>> >>>> Hi >>>> The following is what we discussed in the meeting: >>>> >>>> Since enabling crossContext is having security concern specially in >>>> tenant specific scenarios and forwarding request which comes from root >>>> context to another context in valve level is not properly handled the >>>> requested URI from the browser, the proposed solution was to use different >>>> virtual host for each web app to be deployed. >>>> >>>> Then, those web apps can be accessed from the virtual host as a root >>>> web app. The programmatic deployment of the web app can be handled when a >>>> web app is uploaded by a tenant. >>>> >>>> Regards, >>>> Reka >>>> >>>> On Tue, Feb 28, 2012 at 3:21 PM, Reka Thirunavukkarasu >>>> <r...@wso2.com>wrote: >>>> >>>>> This event has been changed. >>>>> more details >>>>> »<https://www.google.com/calendar/event?action=VIEW&eid=ODcybG5tYjA2bm84Zms1djg4ZzFwcGhqbWMgY2FyYm9uLWRldkB3c28yLm9yZw&tok=MTMjcmVrYUB3c28yLmNvbTdhMmFiNWExMWZkZGQ2MTliYjc2M2VlNDdkMGY2M2IyMWI1NTUwZTQ&ctz=Asia%2FColombo&hl=en> >>>>> Context Mapping to Stratos AS with current carbon >>>>> *Changed: *Since carbon is not currently deployed as a web-app, how >>>>> possibly forward a request from carbon to another context. >>>>> Security is a concern when fetching resources from another context by >>>>> enabling crossContext to AS. >>>>> We need to decide on how to handle the request forwarding? >>>>> *When* >>>>> Wed Feb 29 11:30am – 12pm Colombo >>>>> *Where* >>>>> LK #59 2nd Floor Room >>>>> (map<http://maps.google.lk/maps?q=LK+%2359+2nd+Floor+Room&hl=en> >>>>> ) >>>>> *Calendar* >>>>> carbon-dev@wso2.org >>>>> *Who* >>>>> • >>>>> r...@wso2.com - organizer >>>>> • >>>>> Selvaratnam Uthaiyashankar >>>>> • >>>>> Pradeep Fernando >>>>> • >>>>> Afkham Azeez >>>>> • >>>>> Amani Soysa >>>>> • >>>>> carbon-dev@wso2.org >>>>> • >>>>> Sameera Jayasoma >>>>> • >>>>> Dimuthu Leelarathne >>>>> >>>>> Going? >>>>> ***Yes<https://www.google.com/calendar/event?action=RESPOND&eid=ODcybG5tYjA2bm84Zms1djg4ZzFwcGhqbWMgY2FyYm9uLWRldkB3c28yLm9yZw&rst=1&tok=MTMjcmVrYUB3c28yLmNvbTdhMmFiNWExMWZkZGQ2MTliYjc2M2VlNDdkMGY2M2IyMWI1NTUwZTQ&ctz=Asia%2FColombo&hl=en>- >>>>> Maybe<https://www.google.com/calendar/event?action=RESPOND&eid=ODcybG5tYjA2bm84Zms1djg4ZzFwcGhqbWMgY2FyYm9uLWRldkB3c28yLm9yZw&rst=3&tok=MTMjcmVrYUB3c28yLmNvbTdhMmFiNWExMWZkZGQ2MTliYjc2M2VlNDdkMGY2M2IyMWI1NTUwZTQ&ctz=Asia%2FColombo&hl=en>- >>>>> No<https://www.google.com/calendar/event?action=RESPOND&eid=ODcybG5tYjA2bm84Zms1djg4ZzFwcGhqbWMgY2FyYm9uLWRldkB3c28yLm9yZw&rst=2&tok=MTMjcmVrYUB3c28yLmNvbTdhMmFiNWExMWZkZGQ2MTliYjc2M2VlNDdkMGY2M2IyMWI1NTUwZTQ&ctz=Asia%2FColombo&hl=en> >>>>> * **more options >>>>> »<https://www.google.com/calendar/event?action=VIEW&eid=ODcybG5tYjA2bm84Zms1djg4ZzFwcGhqbWMgY2FyYm9uLWRldkB3c28yLm9yZw&tok=MTMjcmVrYUB3c28yLmNvbTdhMmFiNWExMWZkZGQ2MTliYjc2M2VlNDdkMGY2M2IyMWI1NTUwZTQ&ctz=Asia%2FColombo&hl=en> >>>>> >>>>> Invitation from Google Calendar <https://www.google.com/calendar/> >>>>> >>>>> You are receiving this courtesy email at the account >>>>> carbon-dev@wso2.org because you are an attendee of this event. >>>>> >>>>> To stop receiving future notifications for this event, decline this >>>>> event. Alternatively you can sign up for a Google account at >>>>> https://www.google.com/calendar/ and control your notification >>>>> settings for your entire calendar. >>>>> >>>>> _______________________________________________ >>>>> Carbon-dev mailing list >>>>> Carbon-dev@wso2.org >>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>>>> >>>>> >>>> >>> >>> >>> -- >>> *Afkham Azeez* >>> Director of Architecture; WSO2, Inc.; http://wso2.com >>> Member; Apache Software Foundation; http://www.apache.org/ >>> * <http://www.apache.org/>** >>> email: **az...@wso2.com* <az...@wso2.com>* cell: +94 77 3320919 >>> 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* >>> * >>> * >>> *Lean . Enterprise . Middleware* >>> >>> >> > -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * <http://www.apache.org/>** email: **az...@wso2.com* <az...@wso2.com>* cell: +94 77 3320919 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* * * *Lean . Enterprise . Middleware*
_______________________________________________ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev