Jetty Logo
Version: 9.2.2-SNAPSHOT
Contact the core Jetty developers at www.webtide.com

private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery

Configuring Static Content Deployment

Should you want to serve purely static content, you can use the Jetty Deployment Descriptor XML concepts and the internal ResourceHandler to setup simple serving of static content. Just create a file called scratch.xml in the ${jetty.home}/webapps directory and paste these file contents in it.

This is a very basic setup for serving static files, if you want advanced static file serving, use the DefaultServlet.

See an error or something missing? Contribute to this documentation at Github!(Generated: 2014-08-30T01:00:28-07:00)