Fastly Serves Wrong Content or Denies Requests From Origin (Override Host)
Quick answer
If your origin rejects requests through Fastly, the Host header probably does not match what it expects. Set an override host on the origin.
Most likely fix: Override the host per origin
How to fix it
Try these in order — the most common fix is first.
1. Override the host per origin
- Clone the service to edit and click Origins
- Open the three dots next to the host, click Edit host
- Enter the hostname your origin expects in Override host
- Click Update and activate on Production
Did this fix it?2. Global override (single origin only)
- Settings, then Override hosts, switch Override host on
- Enter the Override host header value and save, then activate
- Per-origin overrides take precedence over the global one
Did this fix it?
Symptoms
Origin such as S3 or Google Cloud Storage denies requests or returns the wrong site only when going through Fastly.
Why it happens
- The Host header sent to the origin differs from the one the origin expects
- Several domains on one service share one origin
- A global override host conflicts with multiple origins, forced TLS/HSTS or shielding
This guide also covers
- fastly override host
- fastly s3 access denied
- fastly origin wrong host header
Still not working?
If Fastly keeps failing, you're not alone. See every Fastly problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to usOther Fastly errors
- Fastly Error: Unknown Domain
- Fastly 503 Backend Read Error / Connection Timeout
- Fastly Purge Not Working (Old Content Still Served)
- Fastly TLS Certificate Stuck Pending or Not Provisioning
- Fastly Origin TLS Errors: Hostname Mismatch, Unable to Verify Certificate
- Fastly Not Caching: Always X-Cache MISS
- How to Cancel Fastly Account