Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 88859 invoked from network); 29 Sep 2009 09:11:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Sep 2009 09:11:22 -0000 Received: (qmail 78942 invoked by uid 500); 29 Sep 2009 09:11:21 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 78868 invoked by uid 500); 29 Sep 2009 09:11:20 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 78858 invoked by uid 99); 29 Sep 2009 09:11:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Sep 2009 09:11:20 +0000 X-ASF-Spam-Status: No, hits=2.7 required=10.0 tests=SPF_NEUTRAL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.220.209] (HELO mail-fx0-f209.google.com) (209.85.220.209) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Sep 2009 09:11:13 +0000 Received: by fxm5 with SMTP id 5so4347809fxm.3 for ; Tue, 29 Sep 2009 02:10:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.102.249.21 with SMTP id w21mr1658072muh.58.1254215451678; Tue, 29 Sep 2009 02:10:51 -0700 (PDT) Date: Tue, 29 Sep 2009 11:10:51 +0200 Message-ID: <212527d0909290210q24593f14wbe0aa69b7223259c@mail.gmail.com> Subject: External process for httpd_global_handlers From: Marcin Lepicki To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi, I am developing Flex application with CouchDB backend (only GET requests, for images). Flash/flex apps must pass security rules for flash player (more info on http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html), but all I want to get special text file crossdomain.xml at /crossdomain.xml, for example http://localhost:5984/crossdomain.xml. Now we are using apache proxy with rewrite rule to achieve it. I have looked at http://wiki.apache.org/couchdb/ExternalProcesses, but only [httpd_db_handlers] are described there. In this case I want to use external process for [httpd_global_handlers], but I can't get it work. I am using Python script described at http://wiki.apache.org/couchdb/ExternalProcesses.In local.ini configuration file I have added: [external] cross = python /path/bin/test.py [httpd_global_handlers] crossdomain.xml = {couch_httpd_external, handle_external_req, <<"cross">>} When pointing to http://localhost:5984/crossdomain.xml I get: {"error":"external_server_error","reason":"Broken assumption"} When changing [httpd_global_handlers] to [httpd_db_handlers] it works perfectly, but only for databases, like http://localhost:5984/mydb/crossdomain.xml. Is there any chance to get per-node external handler? Best, Marcin Lepicki