Examples
Define a single origin rule using Terraform
Create an origin rule using Terraform to override the `Host` header, the resolved hostname, and the destination port of API requests.Change the destination port
Create an origin rule to change the destination port.Change the HTTP Host header and DNS record
Create an origin rule to change the HTTP `Host` header and the resolved DNS record.Was this helpful?
- Resources
- API
- New to Cloudflare?
- Directory
- 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