Hi Vidal, Am Freitag, den 15.02.2008, 15:52 +0100 schrieb Vidar Ramdal: > OK, last question before I call it a weekend: > > I'd like to host multiple sites (internet domains) on a single Sling > app. How can I map a domain to a JCR node? > > Example: > www.domain1.com maps to /content/domain1.com > www.domain2.com maps to /content/domain2.com > > An option would be to redirect the browser, so that > http://www.domain1.com redirects to > http://www.domain1.com/domain1.com, but this is not ideal. >
This is really, an interesting request. At the moment, this is not possible (aka implemented) but, I could imagine, that this would be implemented in the JcrResourceResolver.resolve(String) method which already contains two mapping facilities for virtual URL paths (like "/" is really "/content/home.html") and mapped URLs (like "/home.html" is really "/content/home.html"). Extending this to include the request host name would be possible. If you could file an enhancement request JIRA, we could track this more easily. Thanks. Regards Felix
