couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan McKillen <ryan.mckil...@gmail.com>
Subject Re: Disabling 405 Method Not Allowed on POSTs to static pages
Date Tue, 07 Jun 2011 17:17:27 GMT
Thanks.

>From the docs at http://wiki.apache.org/couchdb/Rewriting_urls, looks as if
you can specify a request method for matching purposes, then rewrite the
URL, but there's no way to rewrite the method as well.

I'll probably just go HTTP proxy handler route.


On Wed, Jun 1, 2011 at 6:37 PM, Sean Copenhaver
<sean.copenhaver@gmail.com>wrote:

> Yeah I don't think you can use just couch. Might have to have a proxy in
> front of it. To my understanding you can't rewrite the URL and the method
> (POST to GET for example), only the URL. Someone else may have to confirm
> who knows more about the URL rewrite stuff.... Although someone also may be
> able to help you tweak the rewrite code to allow it.
>
> On Jun 1, 2011, at 9:16 PM, Ryan McKillen <ryan.mckillen@gmail.com> wrote:
>
> > Bump. Anyone have some insight on this? Looks like I may have to use a
> > traditional web server instead of Couch.
> >
> > On Tue, May 17, 2011 at 10:05 AM, Ryan McKillen <ryan.mckillen@gmail.com
> >wrote:
> >
> >> When serving static assets from a CouchApp (e.g. HTML and JS for a
> >> Backbone.js app), a 405 Method Not Allowed error is appropriately kicked
> >> when those static pages are POSTed to.
> >>
> >> However, using Couch to serve a Facebook canvas app (CouchApp is served
> in
> >> an iframe) is problematic because Facebook sends all requests as POSTs.
> Is
> >> there any way to make Couch allow the POST method?
> >>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message