Configuring the HTTP and HTTPS ports
By default, the mqweb server that hosts the IBM® MQ Console and REST API uses the HTTPS port 9443. The port that is associated with HTTP connections is disabled. You can enable the HTTP port, configure a different HTTPS port, or disable the HTTP or HTTPS port. You can configure the ports by using the setmqweb command.
Before you begin
If you enable the HTTP port, and are using token based authentication, you must enable the same LTPA token to be used for both HTTP and HTTPS connections. For more information, see Configuring the LTPA token.
On z/OS®, you must have authority to
run the dspmqweb and setmqweb commands, and write access to
the mqwebuser.xml file.
On all other operating systems, you must be a privileged user.![[Linux]](../common/../configure/nglinux.gif)
If the mqweb server is part of a stand-alone IBM MQ Web Server installation, you must have write access to the
mqwebuser.xml file in the IBM MQ Web Server
data directory.
Attention:
Before you issue 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.
export WLP_USER_DIR=WLP_user_directory where
WLP_user_directory is the name of the directory that is passed
to crtmqweb. For
example:export WLP_USER_DIR=/var/mqm/web/installation1For more information, see Create the mqweb server.
![[Linux]](../common/../configure/nglinux.gif)
Attention:
Before you issue either the setmqweb or dspmqweb commands in a stand-alone IBM MQ Web Server installation, you must set the MQ_OVERRIDE_DATA_PATH environment variable to the IBM MQ Web Server data directory.
- Log in to the IBM MQ Console.
- Use token based authentication with the REST API.