Apache Solr open-source search software
SOLR-15923: Cue users on 404 that Solr is responding (#535)
Eric Pugh6f6ed2748771
diff --git a/solr/webapp/web/WEB-INF/web.xml b/solr/webapp/web/WEB-INF/web.xmlindex 33cad1f47e2..dfc0c0ce454 100644--- a/solr/webapp/web/WEB-INF/web.xml+++ b/solr/webapp/web/WEB-INF/web.xml@@ -29,7 +29,7 @@<filter-name>SolrRequestFilter</filter-name><filter-class>org.apache.solr.servlet.SolrDispatchFilter</filter-class><!--- Exclude patterns is a list of directories that would be short circuited by the+ Exclude patterns is a list of directories that would be short circuited by theSolrDispatchFilter. It includes all Admin UI related static content.NOTE: It is NOT a pattern but only matches the start of the HTTP ServletPath.-->@@ -98,5 +98,10 @@<servlet-name>RedirectOldZookeeper</servlet-name><url-pattern>/zookeeper</url-pattern></servlet-mapping>--->+-->++ <error-page>+ <error-code>404</error-code>+ <location>/error404.html</location>+ </error-page></web-app>diff --git a/solr/webapp/web/error404.html b/solr/webapp/web/error404.htmlnew file mode 100644index 00000000000..779117107dc--- /dev/null+++ b/solr/webapp/web/error404.html@@ -0,0 +1,5 @@+<p>+ Searching for Solr?<br/>+ You must type the correct path.<br/>+ Solr will respond.+</p>