Nuo Yan

Problem Solved

Recent Posts

Tags

News


  • Follow me on twitter: @nuoyan
    Make a donation to this Blog by PayPal. Thanks!






    Nuo is currently a Software Development Engineer in a Seattle-based software company.




    Locations of visitors to this page

    The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my school or employer. It is solely my opinion. Inappropriate comments will be deleted at the authors discretion. All code samples are provided "AS IS" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.


Community

Email Notifications

Archives

Modify bind address for couchdb 0.9.0

By default couchdb only binds to 127.0.0.1 so it's not accepting requests from other IP addresses. The bind address setting can be modified in the configuration file. For 0.9.0, by default, the default configuration file is located at /usr/local/etc/couchdb/default.ini, and the local configuration file is located at /usr/local/etc/couchdb/local.ini. Settings in the local configuration file will override those in the default one. 

Bind address is in the [httpd] section

[httpd]

port = 5984

bind_address = 127.0.0.1

Note that in the local configuration file, this may be commented out with a leading ";", if you want to set it in the local configuration file, you need to uncomment the bind_address line and modify 127.0.0.1 to some other IP address.

If you modify the bind address to 0.0.0.0, it will bind all interfaces.

 

 

 

Comments

Erik Garrison said:

Just a note.  I tried this using CouchDB 0.11.0b822738 and found that CouchDB would bind to all interfaces if you simply remove the bind_address line.  Setting bind_address to 0.0.0.0 did not work for me.

# October 9, 2009 7:09 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)