当我运行以下URL时,我可以看到所有权限都打开了
http://localhost:8983/solr/#/现在,我在开发服务器上安装了solr
http://www.xyz.com:8983/solr/#/在这里,任何人都可以打开它并销毁文档。如何设置密码保护?或服务器上的任何其他解决方案。
编辑过的
我添加了这段导致503错误的代码。有人能检查一下这里的错误吗
<web-app
id="/solr"
document-directory="/home/admin1/solr-4.2.1/example/"
archive-path="/home/admin1/solr-4.2.1/example/webapps/solr.war"
character-encoding="utf-8">
<system-property solr.solr.home="/home/admin1/solr-4.2.1/example/solr/collection1/data" />
<authenticator type="com.caucho.server.security.XmlAuthenticator">
<init>
<user>user:user12345:user,admin</user>
<password-digest>none</password-digest>
</init>
</authenticator>
<security-constraint url-pattern='/admin/*' role-name='user'/>
</web-app>我已经将这个添加到
example/solr-webapp/webapp/WEB-INF/web.xml发布于 2013-05-15 00:24:10
Solr Wiki上的Solr Security页面有很多很好的建议,可以用来限制对Solr的全部或部分访问。
https://stackoverflow.com/questions/16544226
复制相似问题