2007-07-30 17:20:18 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2006-11-09 23:13:58 +00:00
|
|
|
<!--
|
|
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
|
|
this work for additional information regarding copyright ownership.
|
|
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
(the "License"); you may not use this file except in compliance with
|
|
|
|
the License. You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
2012-05-23 15:30:07 +00:00
|
|
|
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
|
2012-04-27 18:13:39 +00:00
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2012-05-23 15:30:07 +00:00
|
|
|
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
|
2012-04-27 18:13:39 +00:00
|
|
|
version="2.5"
|
|
|
|
metadata-complete="true"
|
|
|
|
>
|
2006-01-26 05:37:29 +00:00
|
|
|
|
2007-01-29 20:33:21 +00:00
|
|
|
<!-- Any path (name) registered in solrconfig.xml will be sent to that filter -->
|
|
|
|
<filter>
|
|
|
|
<filter-name>SolrRequestFilter</filter-name>
|
|
|
|
<filter-class>org.apache.solr.servlet.SolrDispatchFilter</filter-class>
|
2008-03-25 01:40:00 +00:00
|
|
|
<!--
|
2015-05-15 05:50:54 +00:00
|
|
|
Exclude patterns is a list of directories that would be short circuited by the
|
|
|
|
SolrDispatchFilter. It includes all Admin UI related static content.
|
|
|
|
NOTE: It is NOT a pattern but only matches the start of the HTTP ServletPath.
|
|
|
|
-->
|
2007-02-18 03:33:13 +00:00
|
|
|
<init-param>
|
2015-05-15 05:50:54 +00:00
|
|
|
<param-name>excludePatterns</param-name>
|
2018-12-12 10:35:15 +01:00
|
|
|
<param-value>/partials/.+,/libs/.+,/css/.+,/js/.+,/img/.+,/templates/.+</param-value>
|
2007-02-18 03:33:13 +00:00
|
|
|
</init-param>
|
2007-01-29 20:33:21 +00:00
|
|
|
</filter>
|
2008-03-25 00:42:36 +00:00
|
|
|
|
2007-01-29 20:33:21 +00:00
|
|
|
<filter-mapping>
|
|
|
|
<filter-name>SolrRequestFilter</filter-name>
|
|
|
|
<url-pattern>/*</url-pattern>
|
|
|
|
</filter-mapping>
|
2006-05-21 21:55:12 +00:00
|
|
|
|
2012-03-06 17:04:19 +00:00
|
|
|
<servlet>
|
|
|
|
<servlet-name>LoadAdminUI</servlet-name>
|
|
|
|
<servlet-class>org.apache.solr.servlet.LoadAdminUiServlet</servlet-class>
|
|
|
|
</servlet>
|
2013-03-06 04:50:33 +00:00
|
|
|
|
|
|
|
<servlet>
|
2013-03-25 04:29:33 +00:00
|
|
|
<servlet-name>SolrRestApi</servlet-name>
|
2013-03-06 04:50:33 +00:00
|
|
|
<servlet-class>org.restlet.ext.servlet.ServerServlet</servlet-class>
|
|
|
|
<init-param>
|
|
|
|
<param-name>org.restlet.application</param-name>
|
2014-03-12 21:52:49 +00:00
|
|
|
<param-value>org.apache.solr.rest.SolrSchemaRestApi</param-value>
|
|
|
|
</init-param>
|
|
|
|
</servlet>
|
|
|
|
|
2015-10-24 11:40:07 +00:00
|
|
|
<servlet-mapping>
|
|
|
|
<servlet-name>LoadAdminUI</servlet-name>
|
|
|
|
<url-pattern>/index.html</url-pattern>
|
2012-03-06 17:04:19 +00:00
|
|
|
</servlet-mapping>
|
2013-03-06 04:50:33 +00:00
|
|
|
|
|
|
|
<servlet-mapping>
|
2013-03-25 04:29:33 +00:00
|
|
|
<servlet-name>SolrRestApi</servlet-name>
|
2013-03-06 04:50:33 +00:00
|
|
|
<url-pattern>/schema/*</url-pattern>
|
|
|
|
</servlet-mapping>
|
2012-04-09 18:22:31 +00:00
|
|
|
|
2006-12-11 20:30:02 +00:00
|
|
|
<mime-mapping>
|
|
|
|
<extension>.xsl</extension>
|
|
|
|
<!-- per http://www.w3.org/TR/2006/PR-xslt20-20061121/ -->
|
|
|
|
<mime-type>application/xslt+xml</mime-type>
|
|
|
|
</mime-mapping>
|
2006-01-26 05:37:29 +00:00
|
|
|
|
2011-07-28 22:30:09 +00:00
|
|
|
<welcome-file-list>
|
2015-10-24 11:40:07 +00:00
|
|
|
<welcome-file>index.html</welcome-file>
|
2011-07-28 22:30:09 +00:00
|
|
|
</welcome-file-list>
|
|
|
|
|
2016-09-22 01:18:27 +02:00
|
|
|
<!-- 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>
|
|
|
|
|
2018-08-13 10:39:21 +02:00
|
|
|
<!--
|
|
|
|
RedirectServlet can be used to redirect old endpoints to a new location to support back compatibility.
|
|
|
|
Example below
|
|
|
|
-->
|
|
|
|
<!--
|
|
|
|
<servlet>
|
|
|
|
<servlet-name>RedirectOldZookeeper</servlet-name>
|
|
|
|
<servlet-class>org.apache.solr.servlet.RedirectServlet</servlet-class>
|
|
|
|
<init-param>
|
|
|
|
<param-name>destination</param-name>
|
|
|
|
<param-value>${context}/admin/zookeeper</param-value>
|
|
|
|
</init-param>
|
|
|
|
</servlet>
|
|
|
|
<servlet-mapping>
|
|
|
|
<servlet-name>RedirectOldZookeeper</servlet-name>
|
|
|
|
<url-pattern>/zookeeper</url-pattern>
|
|
|
|
</servlet-mapping>
|
|
|
|
-->
|
2006-01-26 05:37:29 +00:00
|
|
|
</web-app>
|