AI Gateway supports multi-domain management with independent protocol, certificate, and routing configurations. Wildcard domain names such as *.hello.com let you access the gateway through 1.hello.com, 2.hello.com, and similar subdomains.
Prerequisites
Complete the ICP filing for your domain name.
Domain names in Chinese mainland regions require ICP filing with Alibaba Cloud or Alibaba Cloud added as a service provider for the existing filing. Domain names outside the Chinese mainland do not require ICP filing.
Procedure
Log on to the AI Gateway console.
In the navigation pane on the left, choose Domain Name. In the top menu bar, select a region.
-
Click Add Domain Name, configure the following parameters, and click OK.
Parameter
Description
Domain Name
Enter a full domain name such as
hello.comor a wildcard domain name such as*.hello.com. Each domain name has independent protocol, certificate, and routing configurations.Important*.hello.commatchesa.hello.com,b.hello.com, anda.b.hello.com. However, a certificate for*.hello.comcovers onlya.hello.comandb.hello.com, nota.b.hello.com.Select HTTP or HTTPS. Supported ports:
-
HTTP: port 80.
-
HTTPS: port 443.
If you select the HTTPS protocol
Certificate
Select a certificate from SSL Certificate Service.
NoteIf you do not have a certificate, click Purchase/Upload Certificate to go to the SSL Certificate Service console. Purchase SSL Certificates.
Always Use HTTPS
When enabled, only the HTTPS port is active. All HTTP requests are redirected to HTTPS.
Enable HTTP/2?
Specifies whether to use HTTP/2, negotiated during the TLS handshake through ALPN.
-
Use gateway instance configuration: Uses the gateway-level
EnableHttp2setting. Changes toEnableHttp2apply automatically. -
Enabled: Uses HTTP/2 after TLS handshake.
-
Off: Does not use HTTP/2.
NoteFor HTTP connections, the gateway upgrades to HTTP/2 automatically through the HTTP Upgrade header. This setting applies only to HTTPS.
TLS Version
Set the supported TLS version range.
-
Minimum TLS version: Default is 1.0.
-
Maximum TLS version: Default is 1.3.
Cipher Suite
Select a Default or Custom cipher suite.
-
Default: Uses the default cipher suite.
-
Custom: Select specific cipher suites to allow.
NoteCustom cipher suites apply only to TLS 1.0, 1.1, and 1.2 connections, not TLS 1.3.
Mutual authentication mTLS
Enable or disable mutual authentication mTLS. Disabled by default.
Mutual authentication CA certificate
Required when mutual authentication mTLS is enabled. Select a CA certificate to verify client identity.
resource
Select a resource group, or click Create Resource Group to create one.
-
Verify the result
Configure an accessible route for the domain name.
-
If DNS resolution is configured, access the domain name in a web browser to verify.
-
If DNS is not configured, verify with the following commands. The examples use
hello.comas the domain name. Replace {public IP address} with your gateway's public IP address.-
Verify HTTP
curl http://hello.com --resolve "hello.com:80:{public IP address}" -
Verify HTTPS
curl -v -k https://hello.com --resolve "hello.com:443:{public IP address}" --cacert my-cert.pem
-