Serve /static-assets from Azure Blob Storage
Route requests with a URI path starting with /static-assets to an Azure Blob Storage container using Cloud Connector.
To serve static assets from an Azure Blob Storage container:
- Log in to the Cloudflare dashboard ↗ and select your account and domain.
 - Navigate to Rules > Cloud Connector.
 - Select Microsoft Azure - Blob Storage as your cloud provider.
 - Enter the bucket URL. Use the following URL structure:
- Subdomain-style URL: Set the hostname to 
<BUCKET_NAME>.blob.core.windows.net. In this case, your bucket should include a folder namedstatic-assets, and files should be placed inside this folder. For example,https://<YOUR_HOSTNAME>/static-assets/style.csswill map tohttps://<BUCKET_NAME>.blob.core.windows.net/static-assets/style.css. 
 - Subdomain-style URL: Set the hostname to 
 - (Optional) Use URL Rewrite Rules to adjust the URL structure. For example, you can create a URL rewrite that changes 
/static-assetsto/my-pages-project/static-assetsto match the file structure of your object storage bucket. - Click Next and enter a descriptive name like 
Serve static assets from Azurein Cloud Connector name. - Under If, select Custom filter expression and enter the following expression:
http.request.full_uri wildcard "http*://<YOUR_HOSTNAME>/static-assets/*" - Select Deploy to activate the rule.
 
This setup ensures that all traffic matching http*://<YOUR_HOSTNAME>/static-assets/* (HTTPS and HTTP requests) is served from your Azure Blob Storage container. Make sure to replace <YOUR_HOSTNAME> with your actual hostname and adjust the example paths according to your setup.
Was this helpful?
- Resources
 - API
 - New to Cloudflare?
 - Products
 - Sponsorships
 - Open Source
 
- Support
 - Help Center
 - System Status
 - Compliance
 - GDPR
 
- Company
 - cloudflare.com
 - Our team
 - Careers
 
- 2025 Cloudflare, Inc.
 - Privacy Policy
 - Terms of Use
 - Report Security Issues
 - Trademark