How to disable solr admin page

后端 未结 4 747
被撕碎了的回忆
被撕碎了的回忆 2021-02-06 04:44

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 we

4条回答
  •  梦谈多话
    2021-02-06 05:27

    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.

    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 .

提交回复
热议问题