handle_file_req handler for crossdomain.xml #4

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Contributor

joelwreed commented Jan 31, 2011

Add 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.

@joelwreed joelwreed Add a new handler, handle_file_req, to serve up files like /crossdoma…
…in.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.
528c52e
Member

janl commented Mar 28, 2012

Hi,

Sorry this has been lingering here for so long!

Until very recently, this wasn't an official way to contribute back to Apache CouchDB.

May we kindly request that you check whether this is still an issue and update the PR accordingly?

We are now prepared and more than happy to accept pull requests :)

Cheers
Jan

Member

janl commented Nov 14, 2012

I have committed this to the master branch. This’ll show up in a CouchDB release near you soon :)

Could you close this PR for us (we currently can't, thanks!)

joelwreed closed this in 2774531 Nov 15, 2012

@asfgit asfgit pushed a commit that referenced this pull request Nov 13, 2014

@dickolsson @kxepal dickolsson + kxepal Correction in the request example for HEAD /db/doc
This closes #4

Signed-off-by: Alexander Shorin <kxepal@apache.org>
1c142b2

@candeira candeira pushed a commit to candeira/couchdb that referenced this pull request Apr 6, 2015

@joelwreed @janl joelwreed + janl Add couch_httpd_misc_handlers:handle_file_req
This can be used 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.

Closes #4
c75c732
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment