WAS v8.5 > Set up the application serving environment > Set up the Liberty profile environment

Liberty profile bootstrap.properties

The bootstrap.properties file initializes the runtime core environment for a particular server.

bootstrap.properties should reside in the server directory with server.xml...

For example...

Property types include...

We can edit bootstrap.properties with a text editor or using WebSphere Studio.

If we update bootstrap.properties, restart the server with the --clean option for the changes to take effect.


Trace and logging

We can change the name of the trace file by editing bootstrap.properties and specifying...


Define the default ports for web applications

We can share server.xml and use XML configuration files across various development environments that allow machine- or environment-specific customization. For example:

  1. Specify the properties default.http.port and default.https.port in bootstrap.properties:
    default.http.port = 9081
    default.https.port = 9444

    If we do not specify the properties, the default HTTP port is 9080 and HTTPS ports is 9443. To override the default HTTP endpoint definition, set the id attribute of the httpEndpoint element to defaultHttpEndpoint in the server configuration.

  2. Use these properties in the server.xml configuration file:
    < httpEndpoint id="defaultHttpEndpoint"
    host="*"
    httpPort="${default.http.port}"
    httpsPort="${default.https.port}" />

    host="*" means "listen on all adapters". By default, the server is listening only on address 127.0.0.1/localhost. We can also use the host property to specify a single IP address, and then the system listens only on the specified adapter.

  • To apply the changes, restart the server.


    Parent topic: Set up the Liberty profile environment


    Related concepts:

    Liberty profile: Server configuration


    Related


    Administer the Liberty profile using WebSphere Studio
    Edit the Liberty profile configuration using WebSphere Studio
    Display the server configuration in a merged view
    Create a Liberty profile server using WebSphere Studio
    Configure session persistence for the Liberty profile


    Reference:

    Liberty profile: Trace and logging
    Liberty profile: Directory locations and properties
    Liberty profile: Configuration elements in server.xml


    |