incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filipe David Manana <fdman...@apache.org>
Subject Re: What is the semicolon means in rewrite rule
Date Sun, 16 Jan 2011 20:34:20 GMT
Janez, all the rewriter code is in src/couchdb/couch_httpd_rewrite.erl afaik.

On Sat, Jan 15, 2011 at 1:46 PM, Janez Štupar <janez.stupar@gmail.com> wrote:
> There is no semicolon in the rewrite rule,
>
> but if you think colon in ":db" - that stands for named pattern, which can
> be used as a variable - you can read more about it here:
> http://wiki.apache.org/couchdb/Rewriting_urls ,
> http://blog.couchone.com/post/443028592/whats-new-in-apache-couchdb-0-11-part-one-nice-urlsand
> http://caolanmcmahon.com/on_designs_undocumented.html
>
> @Benoit - maybe you could point us towards where the rewrites are
> implemented - Id gladly help out with documenting its behavior if you would
> be willing to guide me where to find the information.
>
> Regards,
>
>
> On Sat, Jan 15, 2011 at 12:21 PM, Ido Ran <ido.ran@gmail.com> wrote:
>
>>  rewrites config: [ { "to": "../..", "from": ":db" } ]
>>
>> Thanks,
>> Ido.
>>
>



-- 
Filipe David Manana,
fdmanana@gmail.com, fdmanana@apache.org

"Reasonable men adapt themselves to the world.
 Unreasonable men adapt the world to themselves.
 That's why all progress depends on unreasonable men."

Mime
View raw message