Skip to content

Instantly share code, notes, and snippets.

@dsmiley
Created February 27, 2018 16:53
Show Gist options
  • Save dsmiley/f1e19e5016845464dc4efe7ed46036c2 to your computer and use it in GitHub Desktop.
Save dsmiley/f1e19e5016845464dc4efe7ed46036c2 to your computer and use it in GitHub Desktop.
<!-- this is a part of Solr's jetty.xml to access control for some IPs -->
<!-- =========================================================== -->
<!-- Set handler Collection Structure -->
<!-- =========================================================== -->
<Set name="handler">
<New id="Handlers" class="org.eclipse.jetty.server.handler.HandlerCollection">
<Set name="handlers">
<Array type="org.eclipse.jetty.server.Handler">
<Item>
<Ref id="RewriteHandler"/>
</Item>
<Item>
<New id="IPAccessHandler" class="org.eclipse.jetty.server.handler.IPAccessHandler">
<Set name="white">
<Array type="String">
<Item>127.0.0.1</Item>
<Item>-.-.-.-|/solr/techproducts/select</Item>
</Array>
</Set>
<Set name="whiteListByPath">false</Set>
<Set name="handler">
<New id="Contexts" class="org.eclipse.jetty.server.handler.ContextHandlerCollection"/>
</Set>
</New>
</Item>
<Item>
<New id="DefaultHandler" class="org.eclipse.jetty.server.handler.DefaultHandler"/>
</Item>
<Item>
<New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler"/>
</Item>
</Array>
</Set>
</New>
</Set>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment