| Parameter | Description | Value |
|---|---|---|
| v-gateway v-gateway-name | Virtual gateway name | The value must be the name of an existing virtual gateway. |
| new-port port-num | Listening port of a virtual gateway after modification | The value is an integer ranging from 1024 to 50000. The default value is 443. |
| new-domain domain-name | Domain name of a virtual gateway after modification | The value is a string of 1 to127 case-insensitive characters. |
This command is configured only when virtual gateways of multiple virtual systems share a public IP address.
This command is mainly used to modify a port or modify both a port and a domain name. To separately modify a domain name, see v-gateway domain.
For a sharing mode virtual gateway, if a port number is changed to another port number rather than default port number 443, enter https://Public domain name: Port number/Subdomain in the browser when you access the virtual gateway.
# Change the listening port of exclusive mode virtual gateway v-gateway1 to 2001 and domain name to www.example.com.
<sysname> system-view [sysname] v-gateway v-gateway1 public-ip new-port 2001 new-domain www.example.com
# Change the listening port of sharing mode virtual gateway v-gateway2 to 2002 and change domain name www.test.com/company1 to www.test.com/company2.
<sysname> system-view [sysname] v-gateway v-gateway2 public-ip new-port 2002 new-domain www.test.com/company2