Help Center> Web Application Firewall> FAQ> Website Domain Name Access Configuration> Domain Name and Port Configuration> How Do I Configure Non-standard Ports When Adding a Protected Domain Name?

How Do I Configure Non-standard Ports When Adding a Protected Domain Name?

When you add a domain name to WAF, Port must be configured to the service port of your website. You can configure it by referring to the following instructions:

  • If you set Client Protocol to HTTP, WAF protects services on the standard port 80 by default. If you set Client Protocol to HTTPS, WAF protects services of the standard port 443 by default.
  • To configure a port other than ports 80 and 443, select Non-standard Port and select a non-standard port from the Port drop-down list.

    For details, see Which Non-Standard Ports Does WAF Support?

Configuration Example 1: Protecting Traffic to the Same Standard Port with Different Origin Server IP Addresses Assigned

  1. Deselect Non-standard Port.
  2. Select HTTP or HTTPS for Client Protocol. Figure 1 and Figure 2 show standard port configurations when the client protocol is HTTP or HTTPS.
    Figure 1 Port 80
    Figure 2 Port 443

    If Client Protocol is set to HTTPS, a certificate is required.

  3. Your website visitors can access the website without adding a port number to the end of the domain name. For example, enter http://www.example.com in the address box of the browser to access the website.

Configuration Example 1: Protecting Traffic to a Non-Standard Port with Different Origin Server IP Addresses Assigned

  1. Select Non-standard Port and select a non-standard port to be protected from the Port drop-down list. For details about the non-standard ports supported by WAF, see Which Non-Standard Ports Does WAF Support?
  2. Select HTTP or HTTPS for Client Protocol for all server ports. Figure 3 and Figure 4 show the configuration of non-standard HTTP or HTTPS port, respectively.
    Figure 3 Other HTTP port besides port 80
    Figure 4 Other HTTPS port besides port 443

    If Client Protocol is set to HTTPS, a certificate is required.

  3. Visitors must add the configured non-standard port to the domain name when they access your website. Otherwise, error 404 is returned. If the non-standard port is 8080, enter http://www.example.com:8080 in the address box of the browser.

Configuration Example 3: Protecting Different Service Ports

If the service ports to be protected are different, configure the ports separately. For example, to protect ports 8080 and 6443 for your site www.example.com, add the domain separately for each port, as shown in Figure 5 and Figure 6.
Figure 5 Protecting port 8080

Figure 6 Protecting port 6443