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 (JIRA)" <ji...@apache.org> on 2011/01/31 15:35:11 UTC

[jira] Commented: (COUCHDB-867) Add http handlers for root files with special meanings, such as crossdomain.xml.

    [ https://issues.apache.org/jira/browse/COUCHDB-867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12988771#comment-12988771 ] 

joel reed commented on COUCHDB-867:
-----------------------------------

Here's a fix for this issue:

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.

> Add http handlers for root files with special meanings, such as crossdomain.xml.
> --------------------------------------------------------------------------------
>
>                 Key: COUCHDB-867
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-867
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface
>    Affects Versions: 1.0.1
>            Reporter: Eric Desgranges
>
> Some files at the root level of a website have a special meaning, such as favicon.ico storing the favorite icon, which is processed correctly in the [httpd_global_handlers] section of the ini file with this instruction:
> favicon.ico = {couch_httpd_misc_handlers, handle_favicon_req, "../share/couchdb/www"}
> But this is the only one handled while other files, which are critical when to accessing the CouchDB server from Flash, Flex, Silverlight..., are missing
> - crossdomain.xml (this one should be a top priority fix!)
> - clientaccesspolicy.xml -- See http://msdn.microsoft.com/en-us/library/cc838250%28v=VS.95%29.aspx#crossdomain_communication
> And there's also 'robots.txt' to prevent search engines from accessing some files / directories.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira