On Tue, Apr 27, 2010 at 12:24 PM, Markus Blaurock <[email protected]> wrote:
> Hello,
>
> currently we have the need to run multiple websites on the same
> sling-instance. That is, serving the same or similar content in
> different ways, defined by the hostname.
> For this we would like to have a single pool of sling-app-servers and
> each one should be possible to serve all websites. Otherwise we would
> need to have one pool for each (small) site, which is not feasible.
>
> Our solution was to patch the sling SevletResolver (2.0.9) to accompany
> each entry in the search-path with a hostname (defined by a regular
> expression).
> Resolving a servlet would now evaluate the hostname to "create" a
> specific search-path for this hostname (with entries valid for this
> hostname).
> Probably this could be named "virtual hosts"?
>
> Whith this some questions arise for us:
>
> 1. does somebody have a similar requirement of running multiple websites
> on the same sling instance? Somebody like to share experience?
>
> 2. is there another possible (easier?) solution for our problem?
>
> 3. would this be a feature for sling in general?
>
> What do you think?

Hi Markus;

Already Sling supports at least parts of your requirements.
Take a look at:
http://sling.apache.org/site/mappings-for-resource-resolution.html


-- 
Vidar S. Ramdal <[email protected]> - http://www.idium.no
Sommerrogata 13-15, N-0255 Oslo, Norway
+ 47 22 00 84 00 / +47 21 531941, ext 2070

Reply via email to