1

I enabled httpsd but how to disable the httpd, leaving only httpsd working?

/etc/couchdb/local.ini

... [daemons] ; enable SSL support by uncommenting the following line and supply the PEM's below. ; the default ssl port CouchDB listens on is 6984 httpsd = {couch_httpd, start_link, [https]}

    [ssl]
    cert_file =        /servidor_html/hipso/acesso_seguro/certificados_ssl/hipso_eu.crt
    key_file = /servidor_html/hipso/acesso_seguro/certificados_ssl/hipso_eu.key

2 Answers 2

0

I’d set the bind_address in the [httpd] section to 127.0.0.1, so no external access is possible.

0

Unfortunately, it seems it's not possible at the moment. Apparently it has been possible in a past version and there is a github issue opened for this feature.

One way to achieve the same effect is to use firewall to drop the incoming request, e.g. using ufw: ufw deny 5984

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.