Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 1 | <?xml version="1.0"?> |
| 2 | <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd"> |
| 3 | |
| 4 | <!-- =============================================================== --> |
| 5 | <!-- Mixin the Statistics Handler --> |
| 6 | <!-- =============================================================== --> |
| 7 | |
| 8 | |
| 9 | <Configure id="Server" class="org.eclipse.jetty.server.Server"> |
| 10 | |
| 11 | <Get id="oldhandler" name="handler"/> |
| 12 | |
| 13 | <Set name="handler"> |
| 14 | <New id="IPAccessHandler" class="org.eclipse.jetty.server.handler.IPAccessHandler"> |
| 15 | <Set name="handler"><Ref refid="oldhandler"/></Set> |
| 16 | <Set name="white"> |
| 17 | <Array type="String"> |
| 18 | <Item>0-255.0-255.0-255.0-255</Item> |
| 19 | </Array> |
| 20 | </Set> |
| 21 | <Set name="black"> |
| 22 | <Array type="String"> |
| 23 | <Item>127.0.0.1/blacklisted</Item> |
| 24 | <Item>127.0.0.2/black.html</Item> |
| 25 | </Array> |
| 26 | </Set> |
| 27 | <Set name="whiteListByPath">false</Set> |
| 28 | </New> |
| 29 | </Set> |
| 30 | </Configure> |