Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to authenticate web interface listning in mongodb?

I am running mongodb on port 27017. So, I can see web interface listening on http://myipaddress:28017 But it is open. How can I authenticate it? So, only an authenticate person can view this page?

like image 337
user12345 Avatar asked Dec 05 '25 19:12

user12345


1 Answers

If security is configured for a mongod instance, authentication is required for a client to access the http interface from another machine (http://www.mongodb.org/display/DOCS/Http+Interface). You can not use authentication for clients that access from the same machine.

If you want to turn off the http interface start mongo using the --nohttpinterface option

like image 131
Javier Ferrero Avatar answered Dec 08 '25 08:12

Javier Ferrero



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!