# Return the right mime type for JARs
AddType application/x-java-archive .jar
AddType application/x-java-archive .gz

# Enable type maps
AddHandler application/x-type-map .var

Options +MultiViews
MultiViewsMatch Any

<Files *.pack.gz>
  # Enable the Content-Encoding header for .jar.pack.gz files
  AddEncoding pack200-gzip .jar
  # Stop mod_gzip from messing with the Content-Encoding
  # response for these files
  RemoveEncoding .gz
</Files>

RewriteEngine On
RewriteRule ^lib/(.*)$ $1
