Skip to Content
Best PracticesEnable accelerated access for overseas users to domestic websites through global dynamic acceleration

Accelerate Access to Domestic Websites for Overseas Users through PathX

Application Scenario: The website server is deployed in China. Due to instability in international public networks, overseas users often experience issues such as packet loss and high latency when accessing the website. PathX is used to optimize the overseas users’ access experience.

Solution Architecture: Web site services are deployed in mainland China at www.baidu.com, have completed registration, and provide web services externally. Clients in Los Angeles and Hong Kong can access the accelerated domain through DNS intelligent resolution, thus accessing the UCloud Global backbone network and transmitting to a relay cluster in mainland China.

Resource Planning

ResourceDescriptionQuantity
Acceleration LineLos Angeles -> Mainland China
Hong Kong, China -> Mainland China
2
Acceleration ConfigurationOrigin Address: www.baidu.com
Protocol and Port:
TCP 22 port
HTTP 80 port
1
DNS ResolutionScenario 1: Business domain’s DNS service providers support intelligent resolution based on regions
Business domain www.baidu.com has an A record pointing to 106.75.148.xx in China, which should be retained. After creating the acceleration configuration, copy the accelerated domain name, and add a CNAME record respectively for the United States and Hong Kong, China in the DNS resolution service console, with the value $yours.pathx.ucloudgda.com. After configuration is completed, wait for the DNS to take effect globally and then use dig www.baidu.com in the U.S. or Hong Kong to see the PathX accelerated domain name. In mainland China, dig www.baidu.com will still get the origin 106.75.148.xx.
Scenario 2: Business domain’s DNS service providers do not support intelligent resolution based on regions
If you wish to CNAME to the accelerated domain in accelerated regions while having clients in the origin deployment area access the origin site directly, it is recommended to apply for a new domain such as web.example.com in the accelerated region and add a default CNAME record to $yours.pathx.ucloudgda.com. Meanwhile, www.baidu.com maintains the original DNS record.
2

Brief Workflow

Step 1: Cross-Border Application

According to relevant laws of the People’s Republic of China, purchasing acceleration lines in China for accelerated regions requires that the business domain name must be registered if you need to resolve it to the PathX accelerated domain or accelerated IP.

  1. In the All Products -> Cross-Border Dedicated Line Compliance Check CPLCI page, click Cross-Border Application.
  1. On the creation page, fill in the relevant information and click Submit to complete the application.

Step 2: Purchase Acceleration Line

  1. In the All Products -> PathX -> Line Management page, click Create.
  1. On the creation page, select Mainland China as the location of the origin and Los Angeles and Hong Kong, China as the accelerated areas, click Buy Now and proceed to the payment page to complete the payment.
  1. Return to the list page to view the created acceleration lines.

Step 3: Configure Origin, Acceleration Line, Protocol, and Port

  1. In the All Products -> PathX -> Acceleration Management page, click Create.
  1. On the creation page, choose Mainland China as the origin location, and select the acceleration lines Los Angeles -> Mainland China, Hong Kong -> Mainland China created in Step 2. Enter www.baidu.com as the origin address, select the protocol and acceleration port needed for the business, and bind the SSL certificate for HTTPS-HTTP or HTTPS-HTTPS protocol. Click Buy Now and proceed to the payment page to complete the payment.
  1. Return to the list page to view the created acceleration configurations.

Once the acceleration configuration successfully returns an accelerated domain, it typically takes 1 minute for the configurations to take effect.

Step 4: Configure DNS Resolution

  1. First, use nc or telnet $yours.pathx.ucloudgda.com $yoursport to verify the effective status of the acceleration service. Ensure that the acceleration service is effective before CNAME pointing your business domain to the accelerated domain.