Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Web Application does not require specific servlet parameters. Those which are specified are used to overwrite any properties with the same name from the sling.properties fiele file. One exception to this rule is the sling.home parameter, which is used to set the value of the sling.home property. If no parameter with this name is defined the Sling home directory is derived from the context path at which the Sling Web Application is registered.

The sling.home folders for Sling Web Applications without the sling.home servlet parameter are all located in the sling folder in the current working directory as reported by the user.dir system property. The name of the actual directory is derived from the Web Application Context Path by replacing all slash characters / by underscore characters _. For the root context a single underscore character _ is used.

Examples:

Servlet Context

Default sling.home

root

sling/_

/sling

sling/_sling

/sling/instance1

sling/_sling_instance1

Starting with Launchpad Base 2.2.2 the fixed prefix sling is configurable with the sling.home.prefix system property. If this property is set the value used as the prefix.

Examples: Assume the sling.home.prefix system property is set to /var/sling

Servlet Context

Default sling.home

root

/var/sling/_

/sling

/var/sling/_sling

/sling/instance1

/var/sling/_sling_instance1

sling.properties

...