Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 23950 invoked from network); 22 Mar 2011 09:49:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Mar 2011 09:49:54 -0000 Received: (qmail 26042 invoked by uid 500); 22 Mar 2011 09:49:52 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 25945 invoked by uid 500); 22 Mar 2011 09:49:52 -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 25937 invoked by uid 99); 22 Mar 2011 09:49:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Mar 2011 09:49:52 +0000 X-ASF-Spam-Status: No, hits=0.2 required=5.0 tests=MAY_BE_FORGED,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [62.13.148.149] (HELO outmail148149.authsmtp.com) (62.13.148.149) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Mar 2011 09:49:44 +0000 Received: from mail-c194.authsmtp.com (mail-c194.authsmtp.com [62.13.128.121]) by punt12.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id p2M9nNuB022070 for ; Tue, 22 Mar 2011 09:49:23 GMT Received: from [192.168.88.143] (ppp-80-66-219-212.h2net.pol.it [80.66.219.212] (may be forged)) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2) with ESMTP id p2M9nJ6T038215 for ; Tue, 22 Mar 2011 09:49:20 GMT Message-ID: <4D8870A6.1030809@griffinbyteworks.com> Date: Tue, 22 Mar 2011 10:49:26 +0100 From: Kai Griffin Organization: Griffin Byteworks User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: user@couchdb.apache.org Subject: Re: External process for httpd_global_handlers References: <212527d0909290210q24593f14wbe0aa69b7223259c@mail.gmail.com> <23A97FA5-1DEB-40DF-84D7-D506E798FF00@apache.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Server-Quench: a8d0dc6a-5469-11e0-80b9-0022640b883e X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQsVBFZWRQUy BTkFAiFBTw80OhBT BgUANk1RJ18fSB9c KG5RKUdYMFEWA1hB UjVTDkoLEgo/W2Fq FlsTcgddY0teXwxg VEFDQFIcHAV2Bxof BB8XTBtzdRpEfXx1 ekYsHnImVRoAcyJ9 QUZWFGhIZ2Jnbi5O WBRYI1BSIR5PehlM d1F+AXMQaWVVb2dg R1VpYWxpN2UPcylD eAxfZX8CXUsRGDc4 DwgYGj4iBlZNSSIp Zxw6NkYQK0kVNU87 NWwhUFQUNxIIEWUA X-Authentic-SMTP: 61633235333037.1015:706 X-AuthFastPath: 0 (Was 255) X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Virus-Checked: Checked by ClamAV on apache.org I developed an early prototype of my current project with Flex (Flash), and ran into this issue early on. At first, I resolved it by actually modifying my copy of CouchDB and recompiling it, so that it would handle a request for the crossdomain file in the same way that it handles the welcome response. That worked fine until I upgraded CouchDB, and realised I'd forever be patching the thing and it was unlikely to something that deserved to go into Trunk. Ultimately, I resolved it in a way that wouldn't break or require frivolously hacking into the Couch source. I put the entire Flex/Flash application into my CouchDB database. It had quite a number of modules, images, etc... so I created a script that uploaded all these files, - including the home index.html - all as attachments to a single Couch document called "MyApp" (replace with the real name of your application). In this way, Flash never bothered to ask for a crossdomain file, because the domain/port serving the app is the same as the one serving the data. My application then became accessible using a URL like this: http://www.mydomain.com:5984/MyApp/ (because the webbrowser will automatically try "index.html", that's what you'll get). Cheers, Kai On 18/03/2011 23:03, edward de jong wrote: > I have the same problem; I am trying to access couch from the same machine as > myself, and actionscript (flash) is balking because it can't get the > crossdomain.xml file from root on that socket. I have tried copying > crossdomain.xml all over the place but no go. clearly it has to be inside couch, > but I have no idea how to stuff a crossdomain.xml file into couch; it isn't a > database, but just a text file that couch is being expected to spit up when > requested.... any help would be appreciate, every single person using > actionscript + couch will have the same problem! > > > >