Go to main content

Using Oracle® Solaris 11.4 StatsStore and System Web Interface

Exit Print View

Updated: November 2020
 
 

Configuring System Web Interface Listening Ports

By default, System Web Interface listens on port 6787. You can add listening ports, and you can redirect listen requests from port 443 to port 6787.

Redirecting Listen Requests

By default, System Web Interface listens on port 6787. To listen on port 443 and then redirect requests to port 6787, set the value of the conf/redirect_from_https property to true on the webui/server:default service, as shown in the following example. Notice that neither port 6787 nor port 443 is explicitly mentioned:

$ $ svccfg -s webui/server:default
svc:/system/webui/server:default> listprop conf/redirect_from_https
conf/redirect_from_https boolean     false
svc:/system/webui/server:default> setprop conf/redirect_from_https=true
svc:/system/webui/server:default> listprop conf/redirect_from_https
conf/redirect_from_https boolean     true
svc:/system/webui/server:default> refresh
svc:/system/webui/server:default> exit
$ svcprop -p conf/redirect_from_https webui/server:default
true

Adding Listening Ports

The following example shows how to configure System Web Interface to listen on multiple ports. In this example, two ports, 6787 and 8080, are specified. Always include port 6787, which is the default:

$ svccfg -s webui/server:default
svc:/system/webui/server:default> setprop conf/listen_addresses = astring: ("6787" "8080")
svc:/system/webui/server:default> listprop conf/listen_addresses
conf/listen_addresses astring     "6787" "8080"
svc:/system/webui/server:default> refresh
svc:/system/webui/server:default> exit
$ svcprop -p conf/listen_addresses webui/server:default
6787 8080