By default, Anti-DDoS Pro and Anti-DDoS Premium protect websites that provide services over HTTP port 80 and HTTPS port 443. If your website provides services over ports other than ports 80 and 443, you must specify the custom ports when you add your website to Anti-DDoS Pro or Anti-DDoS Premium.

Limits on custom ports

Take note of the following limits when you specify custom ports:
  • The custom ports that you want to specify must be supported by Anti-DDoS Pro and Anti-DDoS Premium. The ports that are supported vary based on the function plan of your Anti-DDoS Pro or Anti-DDoS Premium instance.
    • Anti-DDoS Pro or Anti-DDoS Premium instance of the Standard function plan:
      • HTTP ports: ports 80 and 8080
      • HTTPS ports: ports 443 and 8443
    • Anti-DDoS Pro or Anti-DDoS Premium instance of the Enhanced function plan:
      • HTTP ports: ports that range from 80 to 65535
      • HTTPS ports: ports that range from 80 to 65535
  • You can specify up to 10 custom ports for all websites that are added to your Anti-DDoS Pro or Anti-DDoS Premium instance. The custom ports include HTTP ports and HTTPS ports.

    For example, you want to add Website A and Website B to your Anti-DDoS Pro or Anti-DDoS Premium instance, Website A provides services over HTTP ports, and Website B provides services over HTTPS ports.

    If you specify HTTP ports 80 and 8080 for Website A, you can specify up to eight HTTPS ports for Website B.

Procedure

The following procedure shows how to change one or more ports for a website that is added to your Anti-DDoS Pro or Anti-DDoS Premium instance. You can also specify one or more custom ports when you add a website to your Anti-DDoS Pro or Anti-DDoS Premium instance. For more information, see Add a website.

  1. Log on to the Anti-DDoS Pro console.
  2. In the top navigation bar, select the region where your instance resides.
    • Mainland China: If you select this region, the Anti-DDoS Pro console appears.
    • Outside Mainland China: If you select this region, the Anti-DDoS Premium console appears.
    You can switch the region to configure and manage Anti-DDoS Pro or Anti-DDoS Premium instances. Make sure that you select the required region when you use Anti-DDoS Pro or Anti-DDoS Premium.
  3. In the left-side navigation pane, choose Provisioning > Website Config.
  4. Find the website whose ports you want to change and click Edit in the Actions column.
  5. On the page that appears, click Custom to the right of Server Port. Custom
  6. Click HTTP and enter custom HTTP ports. Click HTTPS and enter custom HTTPS ports. Then, click Save.
    Separate multiple ports with commas (,). You can click View optional range to view the HTTP and HTTPS ports that are supported. Server Port
  7. Click OK. In the Confirm message, view the custom ports that you specify.