Previous Topic

Next Topic

Book Contents

Book Index

Root Directory

The HTTP Bundle supports a "root directory" – a directory whose content becomes automatically accessible to Web browsers without the need to register the directories and separate files as aliases.

The root directory should be associated with a location on the local file system as well as with a special alias, both configurable through the OSGi Configuration Admin service. For more details refer to HTTP Common Configuration.

If a file's location is

Web browsers will open it by using URL

An additional feature of the HTTP Bundle, related to the root directory, is that if the root directory contains a Web pages called index.html, the server will automatically return the page to the Web browser when there is a request to the root directory alias ending with a trailing "/".