After you activate Drive and Photo Service (PDS) Developer Edition, you can map a custom domain name for your drive, data access, APIs, or logon authentication. By configuring a custom domain name, you can also raise the daily share creation limit above 500.
Usage notes
-
To raise the daily limit for creating and accessing shares above 500, or to remove the restriction on downloading APK and IPA files from external shares, you must configure both an enterprise domain name and a data access domain name.
-
If you use BasicUI for public services or internal use, and it receives more than 1,000 daily visits, you must configure a custom domain name.
-
To use a custom API domain name or logon authentication domain name, contact us to enable the feature.
Prerequisites
-
A PDS Developer Edition domain is created.
-
Only a super administrator or drive administrator can enable this feature.
-
You have enabled BasicUI.
-
You have registered a domain name.
-
If your service is deployed in the Chinese mainland region, ensure that you have completed ICP filing for the domain name.
-
You have an SSL certificate. If you do not have one, you can purchase an SSL certificate from Certificate Management Service. For more information, see Purchase a commercial certificate and Apply for a certificate.
If you completed the ICP filing through a provider other than Alibaba Cloud, the system might fail to retrieve the filing status. This can cause domain name binding or access to fail.
Use cases
Enterprise domain name
An enterprise domain name serves as the access address for your website. It is designed to be easy to remember and reflects your corporate identity.
Data access domain name
A data access domain name is used to access file data or for transcoding and playback.
File transfer
This domain name is used for file transfers within the drive and through external links, such as file uploads and downloads.
Value-added service
This domain name is used for value-added services such as audio and video transcoding, online video playback, and batch downloads.
API domain name
An API domain name is used for API requests. This provides your enterprise with simpler and more intuitive URLs.
Logon authentication domain name
A logon authentication domain name is used for user logon and authentication.
Procedure
Step 1: Configure DNS
-
Obtain the DNS record value.
ImportantThis document describes how to obtain record values for multiple domain name types. Follow the steps that apply to your scenario.
Enterprise domain name
-
Log on to BasicUI and go to the admin console.
-
In the left-side navigation pane, choose Enterprise Settings > Standard Customization.
-
Find the Default Domain under the Enterprise Domain Name section and copy its value.
Record value:
example.apps.aliyunpds.com.
Data access domain name
-
Log on to BasicUI and go to the admin console.
-
In the left-side navigation pane, choose Enterprise Settings > Standard Customization.
-
Find the Default Domain under the Data Access section and copy its value.
Important-
For each service type, you must configure two CNAME records: one for the custom domain name and one to verify DNS domain ownership. For more information, see Example: Map a DNS record for a data access domain name.
-
www.example.comis an example of a custom data access domain name. -
example2.data.aliyunpds.comis an example of a Default Domain.
-
For the custom data access domain name:
Host record:
www.example.com.Record value:
example2.data.aliyunpds.com. -
For DNS domain ownership verification:
Host record:
_dnsauth.www.example.com.Record value:
_dnsauth.www.example.com.example2.data.aliyunpds.com. -
On the Standard Customization page, get the Default Domain for File transfer or Value-added service as needed.
-
API domain name
-
Log on to BasicUI and go to the admin console.
-
In the left-side navigation pane, choose Enterprise Settings > Standard Customization.
-
Find the Default Domain under the API Domain Name section and copy its value.
Record value:
example.api.aliyunpds.com
Logon authentication domain name
-
Log on to BasicUI and go to the admin console.
-
In the left-side navigation pane, choose Enterprise Settings > Standard Customization.
-
Find the Default Domain under the Logon Authentication Domain Name section and copy its value.
Record value: example.auth.aliyunpds.com
-
-
Follow the appropriate steps for your domain name provider to point your domain name to the PDS service.
Alibaba Cloud domain
-
Log on to the Alibaba Cloud DNS console.
-
In the list of authoritative domain names, find the target domain name and click DNS Settings in the right-side column.
-
Click Add DNS Record and configure the following parameters.
Parameter
Description
Example value
Record type
Select CNAME as the record type.
CNAME
Host record
Enter the subdomain prefix that you want to use to access PDS.
www
DNS request source
The resolution line. We recommend selecting Default to allow the system to automatically choose the best route.
Default
Record value
Enter the default domain name for your enterprise.
example.apps.aliyunpds.com
TTL
The time-to-live (TTL) for the DNS record. The minimum value is 1 second.
NoteThere may be a delay before the TTL change takes effect.
10 minutes
Other domain providers
On your domain provider's DNS management platform, add a CNAME record with the following information.
Parameter
Description
Example value
Record type
Select CNAME as the record type.
CNAME
Host record
Enter the subdomain prefix that you want to use to access PDS.
www
DNS request source
The resolution line. We recommend selecting Default to allow the system to automatically choose the best route.
Default
Record value
Enter the default domain name for your enterprise.
example.apps.aliyunpds.com
TTL
The time-to-live (TTL) for the DNS record. The minimum value is 1 second.
NoteThere may be a delay before the TTL change takes effect.
10 minutes
-
-
Verify that the DNS resolution has taken effect.
After you bind the custom domain name, you can use the Alibaba Cloud Network Probing Tool to check the CNAME resolution result.
The CNAME record for your custom domain name is active if the DNS resolution result points to the public access domain name of Drive and Photo Service (PDS).
Select the DNS tab, enter your custom domain name, and click Detect Now. In the Resolution Result column of the detection results, verify that the returned CNAME record points to the public access domain name of Drive and Photo Service (PDS).
Step 2: Configure custom domain name
-
Before configuring the custom domain name, ensure that DNS resolution has taken effect.
-
Before you configure the custom domain name, download an SSL certificate of the Other service type. This provides two files: example.key and example.pem.
-
Log on to BasicUI and go to the admin console.
-
In the left-side navigation pane, choose Enterprise Settings > Standard Customization.
-
Click Configure Domain Name.
Parameter
Description
Example value
Custom domain name
The domain name for which you configured DNS records.
www.example.com
Certificate name
The name of the certificate.
cert_xxxxx
Certificate content
The full content of the example.pem file of the SSL certificate.
NoteIf the certificate is issued by an intermediate certificate authority, the certificate content must be a combination of your downloaded certificate and the intermediate certificate.
-----BEGIN CERTIFICATE-----
example
-----END CERTIFICATE-----
Certificate private key
The full content of the example.key file of the SSL certificate.
-----BEGIN RSA PRIVATE KEY-----
example
-----END RSA PRIVATE KEY-----
-
Click Set Now to complete the Custom Domain Names configuration.