lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "SolrResin" by HossMan
Date Tue, 01 Jul 2008 19:55:43 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The following page has been changed by HossMan:
http://wiki.apache.org/solr/SolrResin

------------------------------------------------------------------------------
  </web-app>
  }}}
  
+ == Restricting Updates (Security) ==
+ 
+ As discussed in SolrSecurity, whenever possible you should configure Resin to restrict access
to any "Update" request handlers so that modifications to your index can only be made by the
clients you expect.  This can be donw by adding a `<security-constraint>` to the `<web-app>`
configuration for Solr in your resin.conf...
+ 
+ {{{
+ <web-app id="/solr" document-directory="webapps/solr" character-encoding="utf-8">
+  <security-constraint>
+   <web-resource-collection>
+     <url-pattern>/update/*</url-pattern>
+   </web-resource-collection>
+   <ip-constraint>
+     <allow>127.0.0.1</allow>
+   </ip-constraint>
+  </security-constraint>
+ </web-app>
+ }}}
  
  == Loading Custom Plugins ==
  
- In addition to using a `${solr.home}/lib` dir for including SolrPlugins, Resin has a general
purpose mechanism for including arbitrary classes in the context class loader of an application
like Solr.  To do this, add a `<class-loader>` declaration to your web-app configuration
in your resin.conf...
+ In addition to using a `${solr.home}/lib` dir for including SolrPlugins, Resin has a general
purpose mechanism for including arbitrary classes in the context class loader of an application
like Solr.  To do this, add a `<class-loader>` declaration to your `<web-app>`
configuration in your resin.conf...
  
  {{{
- <web-app id="/solr" character-encoding="utf-8">
+ <web-app id="/solr" document-directory="webapps/solr" character-encoding="utf-8">
    <class-loader>
      <library-loader path="/path/to/your/lib/dir/containing/some/jars"/>
    </class-loader>

Mime
View raw message