tencent cloud

Cloud Object Storage

Release Notes and Announcements
Release Notes
Announcements
Product Introduction
Overview
Features
Use Cases
Strengths
Concepts
Regions and Access Endpoints
Specifications and Limits
Service Regions and Service Providers
Billing
Billing Overview
Billing Method
Billable Items
Free Tier
Billing Examples
Viewing and Downloading Bill
Payment Overdue
FAQs
Getting Started
Console
Getting Started with COSBrowser
User Guide
Creating Request
Bucket
Object
Data Management
Batch Operation
Global Acceleration
Monitoring and Alarms
Operations Center
Data Processing
Content Moderation
Smart Toolbox
Data Processing Workflow
Application Integration
User Tools
Tool Overview
Installation and Configuration of Environment
COSBrowser
COSCLI (Beta)
COSCMD
COS Migration
FTP Server
Hadoop
COSDistCp
HDFS TO COS
GooseFS-Lite
Online Tools
Diagnostic Tool
Use Cases
Overview
Access Control and Permission Management
Performance Optimization
Accessing COS with AWS S3 SDK
Data Disaster Recovery and Backup
Domain Name Management Practice
Image Processing
Audio/Video Practices
Workflow
Direct Data Upload
Content Moderation
Data Security
Data Verification
Big Data Practice
COS Cost Optimization Solutions
Using COS in the Third-party Applications
Migration Guide
Migrating Local Data to COS
Migrating Data from Third-Party Cloud Storage Service to COS
Migrating Data from URL to COS
Migrating Data Within COS
Migrating Data Between HDFS and COS
Data Lake Storage
Cloud Native Datalake Storage
Metadata Accelerator
GooseFS
Data Processing
Data Processing Overview
Image Processing
Media Processing
Content Moderation
File Processing Service
File Preview
Troubleshooting
Obtaining RequestId
Slow Upload over Public Network
403 Error for COS Access
Resource Access Error
POST Object Common Exceptions
API Documentation
Introduction
Common Request Headers
Common Response Headers
Error Codes
Request Signature
Action List
Service APIs
Bucket APIs
Object APIs
Batch Operation APIs
Data Processing APIs
Job and Workflow
Content Moderation APIs
Cloud Antivirus API
SDK Documentation
SDK Overview
Preparations
Android SDK
C SDK
C++ SDK
.NET(C#) SDK
Flutter SDK
Go SDK
iOS SDK
Java SDK
JavaScript SDK
Node.js SDK
PHP SDK
Python SDK
React Native SDK
Mini Program SDK
Error Codes
Harmony SDK
Endpoint SDK Quality Optimization
Security and Compliance
Data Disaster Recovery
Data Security
Cloud Access Management
FAQs
Popular Questions
General
Billing
Domain Name Compliance Issues
Bucket Configuration
Domain Names and CDN
Object Operations
Logging and Monitoring
Permission Management
Data Processing
Data Security
Pre-signed URL Issues
SDKs
Tools
APIs
Agreements
Service Level Agreement
Privacy Policy
Data Processing And Security Agreement
Contact Us
Glossary

Static Website

PDF
Mode fokus
Ukuran font
Terakhir diperbarui: 2024-12-26 16:32:33

What should I do if I failed to set a custom domain name in the COS console?

1. Make sure that the domain name has obtained an ICP filing.
2. Make sure that the DNS resolution of the domain name is correct. If CDN acceleration is disabled, you need to go to the DNS console to map the CNAME record of your domain name to the default domain name of the bucket.

What is the difference between enabling and disabling CDN acceleration if I have my own domain name bound?

CDN acceleration enabled: The domain name is managed by CDN. Enabling CDN acceleration in the COS console has the same effect as adding a domain name in the CDN console (setting COS as the origin). The CDN-allocated CNAME record is needed for DNS resolution. During the configuration, add the domain name first and then resolve it.
CDN acceleration disabled: The domain name is managed by COS. The domain name configuration is delivered to all download devices connected to the region where the bucket resides. The default domain name of the bucket is used as the CNAME record for DNS resolution.

Why does the Content-Disposition header I set for objects not take effect?

Other custom headers can take effect once set. However, Content-Disposition takes effect only if the static website hosting feature is enabled and you access objects with a custom domain name.

What should I do if a static website cannot be accessed by using a CDN domain name?

Check the configuration of the CDN-accelerated domain name in the following steps:
1. Select Static Website Endpoint as the origin type.
2. Set origin-pull authentication and CDN service authorization based on the bucket permission:
If the bucket permission is private read, authorize the CDN service and enable origin-pull authentication.
If the bucket permission is public read, there is no need to authorize the CDN service or enable origin-pull authentication.
3. Set CDN authentication based on the bucket permission:
(1) If the bucket permission is private read:
CDN Authentication
Access at CDN Acceleration Domain Name
Access at COS Domain Name
Use Case
Disabled (default)
No
COS authentication required
Direct access to the CDN domain name to protect the content on the origin
Enabled
URL authentication required
COS authentication required
Full-linkage protection (with hotlink protection for CDN authentication supported)
(2) If the bucket permission is public read:
CDN Authentication
Access at CDN Acceleration Domain Name
Access at COS Domain Name
Use Case
Disabled (default)
Yes
Yes
Site-wide public access via CDN or origin
Enabled
URL authentication required
Yes
Hotlink protection enabled for access via CDN but not origin (not recommended)

4. After confirming that the above configurations are correct, check the protocol used to access the CDN acceleration domain name and the forced HTTPS configuration of the static website:
If you are using the HTTP protocol to access the CDN acceleration domain name, do not enable forced HTTPS.
If you are using the HTTPS protocol to access the CDN acceleration domain name, we recommend you enable follow 301/302 for the CDN acceleration domain name. For more information, see Follow 301/302 Configuration.
5. If the problem persists, contact us for assistance.

What should I do if 404 is returned on refresh when the static website is used together with the frontend Vue framework and the router is set to History mode?

On the static website configuration page of the bucket, set the error document path to the landing page of the web application (generally index.html) and set the status code of the error document to 200. For the configuration directions of static websites, see Setting Up a Static Website.
Note:
After the above configurations are completed, if you need 404 to respond normally, you can configure it at the most bottom layer of the Vue frontend router configuration. In most cases, wildcards match the custom 404 component.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan