After some experiments on the train and a quick discussion with benoitc in #couchdb, this seems to be a result of using vhosts, not rewrite.
I have the following vhost setup: swift-ca.swiftshift.local:5984 = /swift-ca/_design/swift/_rewrite The debug logs show the following when I request http://swift-ca.swiftshift.local:5984/db/_design/swift/_view/schedules?include_docs=true [debug] [<0.94.0>] Vhost Target: '"/swift-ca/_design/swift/_rewrite/db/_design/swift/_view/schedules"' [debug] [<0.94.0>] 'GET' /swift-ca/_design/swift/_rewrite/db/_design/swift/_view/schedules {1,1} Headers: [{'Connection',"close"}, {'Host',"swift-ca.swiftshift.local:5984"}, {'User-Agent',"HTTP%20Client/0.9.1 CFNetwork/454.5 Darwin/10.2.0 (i386) (MacBookPro5%2C1)"}] [debug] [<0.94.0>] OAuth Params: [] [debug] [<0.94.0>] rewrite to "/swift-ca/_design/swift/_view/schedules" [debug] [<0.94.0>] 'GET' /swift-ca/_design/swift/_view/schedules {1,1} When I request http://localhost:5984/swift-ca/_design/swift/_view/schedules?include_docs=true I get the following: [debug] [<0.231.0>] 'GET' /swift-ca/_design/swift/_view/schedules?include_docs=true {1,1} Headers: [{'Connection',"close"}, {'Host',"localhost:5984"}, {'User-Agent',"HTTP%20Client/0.9.1 CFNetwork/454.5 Darwin/10.2.0 (i386) (MacBookPro5%2C1)"}] [debug] [<0.231.0>] OAuth Params: [{"include_docs","true"}] [debug] [<0.231.0>] request_group {Pid, Seq} {<0.109.0>,214} [info] [<0.231.0>] 127.0.0.1 - - 'GET' /swift-ca/_design/swift/_view/schedules?include_docs=true 200 Note that the include_docs=true param is included in the logs when I don't use the vhost. My erlang-foo is not up to snuff enough to reason through the vhost code and find the issue (I did look!). Anyone have any input? Thanks Dave
