That aside, I thought there were other reasons for not using nginx in front of riak. Http 1.0 vs http 1.1 support. For that reason I front Riak with haproxy.
Thoughts? @siculars http://siculars.posterous.com Sent from my rotary phone. On Oct 6, 2011 9:32 AM, "Mårten Gustafson" <[email protected]> wrote: > Howdy, > > = Background > > During the Riak 1.0 webinar I played around with Nginx and encountered > a problem with secondary indexing when accessing Riak (over HTTP) > through Nginx. I had a quick chat with Sean about it on IRC[1] and > then I forgot it. The problem is that Nginx won't handle header names > with underscores "properly". > > AFAICT it's perfectly legal with underscores in headers according to > RFC 2616[2], I also found a discussion on StackOverflow[3] that came > to the same conclusion. > > > = Solution > > In your nginx.conf in the relevant server-section add the following: > underscores_in_headers on; > > > > /mårten. > > [1] http://irclogger.com/.riak/2011-09-21 @ 14:33 > [2] http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2 > [3] http://stackoverflow.com/questions/964519/php-http-post-incorrect-headers > > _______________________________________________ > riak-users mailing list > [email protected] > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
_______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
