You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by Joel Reed <jo...@gmail.com> on 2011/01/31 15:35:42 UTC

fix for bug 867 - "Add http handlers for root files with special meanings, such as crossdomain.xml."

Here's a fix for bug 867:

https://github.com/joelwreed/couchdb/commit/528c52e6517b777f22fee0ab7fb0f7977c4c05c2 


It adds a new handler, handle_file_req, to serve up files like 
/crossdomain.xml from a couchdb instance. For example, you could add:

[httpd_global_handlers]
crossdomain.xml = {couch_httpd_misc_handlers, handle_file_req, 
"/usr/share/couchdb/www/crossdomain.xml" }

To your local.ini to serve up crossdomain.xml.

jr