david_williams | eb68db3 | 2008-12-08 07:20:51 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
| 2 | <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> |
| 3 | |
| 4 | <!-- |
| 5 | Configure a custom context for the html. |
| 6 | |
| 7 | This context contains only a ServletHandler with a default servlet |
| 8 | to serve static html files and images. |
| 9 | --> |
| 10 | |
| 11 | <Configure class="org.mortbay.jetty.handler.ContextHandler"> |
| 12 | <Call class="org.mortbay.log.Log" name="debug"><Arg>Configure html.xml</Arg></Call> |
| 13 | <Set name="contextPath">/</Set> |
| 14 | <Set name="resourceBase"><SystemProperty name="jetty.home" default="."/>/html</Set> |
| 15 | <Set name="handler"> |
| 16 | <New class="org.mortbay.jetty.handler.ResourceHandler"> |
| 17 | <Set name="welcomeFiles"> |
| 18 | <Array type="String"> |
| 19 | <Item>index.html</Item> |
| 20 | <Item>favicon.ico</Item> |
| 21 | <Item>robots.txt</Item> |
| 22 | </Array> |
| 23 | </Set> |
| 24 | <Set name="cacheControl">max-age=60,public</Set> |
| 25 | </New> |
| 26 | </Set> |
| 27 | |
| 28 | </Configure> |
| 29 | |