atom feed60 messages in org.apache.incubator.sling-devRe: [jira] Commented: (SLING-249) All...
FromSent OnAttachments
22 earlier messages
Bertrand DelacretazNov 20, 2008 8:56 am 
Vidar S. Ramdal (JIRA)Nov 20, 2008 9:16 am 
Vidar S. Ramdal (JIRA)Nov 20, 2008 9:20 am 
Bertrand Delacretaz (JIRA)Nov 20, 2008 9:26 am 
Felix MeschbergerNov 20, 2008 11:16 pm 
Felix Meschberger (JIRA)Nov 20, 2008 11:24 pm 
Alexander KlimetschekNov 21, 2008 12:50 am 
Vidar RamdalNov 21, 2008 1:03 am 
Alexander KlimetschekNov 21, 2008 1:42 am 
Bertrand Delacretaz (JIRA)Nov 21, 2008 3:14 am 
Felix Meschberger (JIRA)Nov 21, 2008 3:28 am 
Felix MeschbergerNov 21, 2008 3:34 am 
Alexander KlimetschekNov 21, 2008 3:37 am 
Felix MeschbergerNov 21, 2008 3:47 am 
Felix MeschbergerNov 21, 2008 3:51 am 
Alexander KlimetschekNov 21, 2008 5:24 am 
Vidar RamdalNov 21, 2008 7:22 am 
Alexander KlimetschekNov 21, 2008 8:47 am 
Roy T. FieldingNov 21, 2008 4:11 pm 
David NueschelerNov 22, 2008 3:49 am 
Felix MeschbergerNov 23, 2008 10:30 am 
Felix MeschbergerNov 23, 2008 1:42 pm 
Vidar RamdalNov 24, 2008 12:59 am 
Felix MeschbergerNov 24, 2008 1:31 am 
Bertrand DelacretazNov 24, 2008 1:37 am 
Bertrand DelacretazNov 24, 2008 1:40 am 
Felix MeschbergerNov 24, 2008 5:06 am 
Felix MeschbergerNov 24, 2008 5:10 am 
Felix Meschberger (JIRA)Nov 25, 2008 3:29 pm 
Felix Meschberger (JIRA)Nov 25, 2008 4:07 pm 
Roy T. FieldingNov 26, 2008 2:46 pm 
Roy T. FieldingNov 26, 2008 2:54 pm 
Roy T. FieldingNov 26, 2008 3:04 pm 
Felix MeschbergerNov 27, 2008 4:25 am 
Felix MeschbergerNov 27, 2008 4:32 am 
Roy T. FieldingDec 3, 2008 3:35 pm 
Felix Meschberger (JIRA)Jan 26, 2009 4:32 am 
Vidar S. Ramdal (JIRA)Jan 27, 2009 4:37 am 
Subject:Re: [jira] Commented: (SLING-249) Allow mapping nodes to internet domains
From:Bertrand Delacretaz (bdel@apache.org)
Date:Nov 24, 2008 1:37:56 am
List:org.apache.incubator.sling-dev

Hi,

On Sat, Nov 22, 2008 at 1:11 AM, Roy T. Fielding <fiel@gbiv.com> wrote:

...I think that Sling should use a content tree to establish the root mappings; e.g.,

/etc/map/{scheme}/{host.port}/{uri_path}...

Agreed, much better to have this info in one place.

Some comments below on the /etc/map details.

/etc/map/http/example.com.80/ +-- sling:redirect = "http://www.example.com/"

I like "redirect" as the property name, better than "target" suggested by someone in this thread, which is less precise.

www.example.com.80/ +-- sling:alias = "/example/"

I think we need variables here, for multi-host setups - and I'd call the property a "content prefix" as it is really what it's doing: prepend a path to the one supplied by the URL to find content.

Vidar also suggested (IIRC) falling back to a different path if the resource is not found, for common css style sheets for example, so my proposal here is:

/etc/map/http/www.*.com.80/ +-- sling:contentPrefix = "/content/sites/{1}/ +-- sling:fallbackContent = "/content/default/

Where {1} maps to the first wildcard defined by the parent node.

and that would also require variables in redirects, so:

/etc/map/http/*.com.80/ +-- sling:redirect = "http://www.{1}.com"

Or, to force https:

/etc/map/http/*.com.80/ +-- sling:redirect = "https://www.{1}.com"

-Bertrand