如何禁用 solr 管理页面 [英] How to disable solr admin page
问题描述
对于生产,拥有一个甚至不要求登录凭据的 solr 管理员感觉不安全.如何禁用默认情况下的 solr 管理页面?我只是想让我的 web 应用程序使用 Solr 进行搜索词索引.
For production, it feels unsafe to have a solr admin which even doesn't ask login credentials. How can I disable the solr admin page which comes by default? I simply want my webapp to use Solr for search term indexing.
推荐答案
我强烈建议保留管理页面以用于调试目的.它在许多情况下救了我.有一些方法可以将其限制为仅通过 HTTP 身份验证的用户:http://wiki.apache.org/solr/SolrSecurity#Jetty_example .您可能需要解压缩并重新压缩您的网络应用程序.
I highly suggest keeping the admin page for debugging purposes. It has saved me in numerous cases. There are ways to restrict it to HTTP-authenticated users only: http://wiki.apache.org/solr/SolrSecurity#Jetty_example . You may have to unzip and re-zip your webapp.
但是,如果您仍然想禁用整个管理部分,您可以在 ${SOLR_HOME}/project/solr/conf/solrconfig.xml 中注释掉管理 requestHandler.
However if you still want to disable the entire admin section, you can comment out the admin requestHandler in ${SOLR_HOME}/project/solr/conf/solrconfig.xml .
这篇关于如何禁用 solr 管理页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!