Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2010-02-21 20:15:17 -0500
committerGreg Wilkins2010-02-21 20:15:17 -0500
commit22adee947368325ef3634f346392c5cdbaeaebae (patch)
treea8d67087df5aab4792707c73280016585daffad4 /jetty-server/src/main/config/etc/jetty-ipaccess.xml
parent0b522aee32b797b7053144147e2ada3a9d0bbeab (diff)
downloadorg.eclipse.jetty.project-22adee947368325ef3634f346392c5cdbaeaebae.tar.gz
org.eclipse.jetty.project-22adee947368325ef3634f346392c5cdbaeaebae.tar.xz
org.eclipse.jetty.project-22adee947368325ef3634f346392c5cdbaeaebae.zip
IPAccessHandler
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1279 7e9141cc-0065-0410-87d8-b60c137991c4
Diffstat (limited to 'jetty-server/src/main/config/etc/jetty-ipaccess.xml')
-rw-r--r--jetty-server/src/main/config/etc/jetty-ipaccess.xml31
1 files changed, 31 insertions, 0 deletions
diff --git a/jetty-server/src/main/config/etc/jetty-ipaccess.xml b/jetty-server/src/main/config/etc/jetty-ipaccess.xml
new file mode 100644
index 0000000000..d5fb5f83bd
--- /dev/null
+++ b/jetty-server/src/main/config/etc/jetty-ipaccess.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
+
+<!-- =============================================================== -->
+<!-- Mixin the Statistics Handler -->
+<!-- =============================================================== -->
+
+
+<Configure id="Server" class="org.eclipse.jetty.server.Server">
+
+ <Get id="oldhandler" name="handler"/>
+
+ <Set name="handler">
+ <New id="IPAccessHandler" class="org.eclipse.jetty.server.handler.IPAccessHandler">
+ <Set name="handler"><Ref id="oldhandler"/></Set>
+ <Set name="white">
+ <Array type="String">
+ <Item>127.0.0.1</Item>
+ <Item>127.0.0.2/*.html</Item>
+ </Array>
+ </Set>
+ <Set name="black">
+ <Array type="String">
+ <Item>127.0.0.1/blacklisted</Item>
+ <Item>127.0.0.2/black.html</Item>
+ </Array>
+ </Set>
+ </New>
+ </Set>
+
+</Configure>

Back to the top