+

Search Tips | Advanced Search

Configure the HTTP host name

By default, the mqweb server which hosts the IBM MQ Console and REST API is configured to allow only local connections. That is, the IBM MQ Console and REST API can be accessed only on the system on which the IBM MQ Console and REST API are installed. From Version 9.0.4, we can configure host name to allow remote connections by using the setmqweb command. In IBM MQ Version 9.0.3, and earlier, we can configure host name to allow remote connections by editing the mqwebuser.xml file.


Before you begin

You must be a privileged user to complete this procedure.From Version 9.0.4,we can view the current configuration of the HTTP host name by using the following command:
dspmqweb properties -a
The httpHost field shows the HTTP host name. For more information, see dspmqweb.

Attention:

Before issuing either the setmqweb or dspmqweb commands on z/OSĀ®, you must set the WLP_USER_DIR environment variable, so that the variable points to your mqweb server configuration.

To do this, issue the following command:
export WLP_USER_DIR=WLP_user_directory
where WLP_user_directory is the name of the directory that is passed to crtmqweb.sh. For example:
export WLP_USER_DIR=/var/mqm/web/installation1

For more information, see Create the Liberty server definition.


Procedure

Use one of the following methods to configure the host name: