WAS v8.5 > Set up the application serving environment > Set up the Liberty profile environmentLiberty 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...
wlp/usr/servers/worklightServer
For example...
c:/ProgramData/IBM/Worklight/WAS85liberty-server/wlp/usr/servers/worklightServer
Property types include...
- A small, predefined set of initialization properties.
- Any custom properties that you choose to define.
We can then use these custom properties as variables in other configuration files such as server.xml and included files
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 loggingWe can change the name of the trace file by editing bootstrap.properties and specifying...
com.ibm.ws.logging.trace.file.name = trace.log
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:
- Specify the properties default.http.port and default.https.port in bootstrap.properties:
default.http.port = 9081 default.https.port = 9444If 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.
- 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
|