Access Static Website Resources
This document explains how to configure domain association through the HTTP access service to access static website hosting resources.
Basic Configuration
Operation Steps
- Go to CloudBase Console - HTTP Access Service
- Click the "New" button in the "Domain Associated Resources" section
- Configure the following information:
| Configuration Item | Description | Example |
|---|---|---|
| Associated Resource Type | Select "Static Website Hosting", then choose static hosting instance | - |
| Domain | Select default domain, custom domain, or * (matches all domains) | Default domain |
| Trigger Path | Set HTTP access path, supports / or custom path | /test |
💡 Tip: For production environments, it's recommended to bind a filed custom domain to get full service capabilities. Please refer to Custom Domain Configuration for configuration methods.

Custom Root Path Access
Configuration Description
If you need to access static hosting resources through a custom path, you can set a custom root path in "Trigger Path".
Configuration Example:
- Trigger path set to
/test - When accessing
https://your-domain/test, it will be mapped to the/directory of static website hosting
Code Adjustments
When using custom root path, you need to adjust relative path references in static resources by adding the custom root path prefix before all resource paths.
Adjustment Example:
<!-- Original path -->
<script src="/js/index.js"></script>
<link rel="stylesheet" href="/css/style.css">
<img src="/images/logo.png" alt="Logo">
<!-- Adjusted (trigger path is /test) -->
<script src="/test/js/index.js"></script>
<link rel="stylesheet" href="/test/css/style.css">
<img src="/test/images/logo.png" alt="Logo">
⚠️ Note: When using custom root path, you need to ensure that all absolute path references in static resources have the corresponding path prefix added, otherwise resource loading will fail.