You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2008/07/01 21:55:43 UTC

[Solr Wiki] Update of "SolrResin" by HossMan

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>