Skip to content Skip to sidebar Skip to footer

$.couch.session Returns Userctx With Null Name

I'm calling the following code: $.couch.login($.extend({ name: 'harry', password: 'secrets'}, callback)); $.couch.session(callback); where 'harry' is just a dummy user I created u

Solution 1:

It turns out all I really needed was an apache reverse proxy. The couch instance didn't have access to the AuthSession cookie, since it was coming from port 5984. Now things work great with the following added to my apache2.conf (may be httpd.conf for some)

LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so
LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so

ProxyPass /_couch http://localhost:5984 nocanon
ProxyPassReverse /_couch http://localhost:5984

Post a Comment for "$.couch.session Returns Userctx With Null Name"