Configure the MPF Server location
In most cases, production servers sit behind a reverse proxy. Their IP address (publicWorkLightHostname) is not used for accessing them from the outside world.
In production, configure the server location in the following circumstances:
- We are using relative path for the onLoginUrl parameter in authenticationConfig.xml.
- We are generating the URL for mobile web and desktop browser apps from the console.
To configure the MobileFirst Server location, set values for:
Property name Description publicWorkLightHostname IP address or host name of the computer running MPF. If the MobileFirst Server is behind a reverse proxy, the value is the IP address or host name of the reverse proxy. This property must be identical for nodes within the same cluster. Default: IP address of current server.
publicWorkLightPort The port for accessing the MobileFirst Server. If the MobileFirst Server is behind a reverse proxy, the value is the port for accessing the reverse proxy. This property must be identical for nodes within the same cluster. Default: 10080.
The <configureApplicationServer> Ant task sets a default value that depends on the application server.
publicWorkLightProtocol The protocol for accessing the MobileFirst Server. Value values are HTTP and HTTPS. If the MobileFirst Server is behind a reverse proxy, the value is the protocol for accessing the reverse proxy. This property must be identical for nodes within the same cluster. Default: HTTP.
The <configureApplicationServer> Ant task sets a default value that depends on the application server.
See Configure a MobileFirst project in production using JNDI environment entries
See Application server-side configuration parameters.
Parent topic: Application server-side configuration parameters