关于solr8安装测试过程中报403错误,处理办法。

在tomcat中webapps/solr/WEB-INF/web.xml修改solrhome位置和注释掉权限管理,如果不注释的花会产生403错误。

需要注释的代码如下(必须要注释不然会报403错误)

<!-- Get rid of error message -->
<!--<security-constraint>
<web-resource-collection>
<web-resource-name>Disable TRACE</web-resource-name>
<url-pattern>/</url-pattern>
<http-method>TRACE</http-method>
</web-resource-collection>
<auth-constraint/>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>Enable everything but TRACE</web-resource-name>
<url-pattern>/</url-pattern>
<http-method-omission>TRACE</http-method-omission>
</web-resource-collection>
</security-constraint>-->

posted on 2019-07-27 14:34  lvzhengmao  阅读(156)  评论(0编辑  收藏  举报

导航