Looking for Cloud Services or Professional Support? Check restheart.com

Edit Page

Serving static resources


RESTHeart allows serving static resources acting as a Web Server.

An example configuration follows:

#### Static Web Resources

# Static web resources to bind to the URL specified by the 'where' property.
# The 'what' property is the path of the directory containing the resources.
# The path is either absolute (starts with /) or relative to the restheart.jar file
# Set embedded: true, if resources are embedded in the file restheart.jar

  - what: /data/www
    where: /static
    welcome-file: index.html
    embedded: false