We've been making changes to how we organize and display our docs. Our work isn't done but we'd love your feedback.
Getting started
Basics
Domains & Origins
Performance

Configuration
Basics
Conditions
Dictionaries
Domains & Origins
Request settings
Cache settings
Headers
Responses
Performance
Custom VCL
Image optimization
Video

Security
Access Control Lists
Monitoring and testing
Securing communications
TLS
Web Application Firewall

Integrations
Logging endpoints
Non-Fastly services

Diagnostics
Streaming logs
Debugging techniques
Common errors

Account info
Account management
Billing
User access and control

Reference

    Specifying an override host

      Last updated November 28, 2018

    If you want to rewrite the host header being sent to your origin regardless of the host used in the initial request, specify an override host. Use this if you have multiple domains tied to a service and want them all served by the same origin, or if the domain your origin is expecting is different than one specified in your Fastly service. You most likely won't need to use this feature.

    You can override the host header being sent to your origin by specifying the domain name of your override host on the Settings page for a specific service.

    Here are some examples of when to use an override host:

    Overriding a host

    1. Log in to the Fastly web interface and click the Configure link.
    2. From the service menu, select the appropriate service.
    3. Click the Configuration button and then select Clone active. The Domains page appears.
    4. Click the Settings link. The Settings page appears.
    5. Click the Override host switch. The Override host header field appears.

      Setting Override host

    6. In the Override host header field, type the hostname of your override host based on the origin you are using:
      • If you are using Amazon S3 as your origin, type <yourbucket>.s3.amazonaws.com.
      • If you are using Google Cloud Storage as your origin, type <your bucket name>.storage.googleapis.com.
    7. Click the Save button. The new override host header appears in the Override host section.
    8. Click the Activate button to deploy your configuration changes.

    Caveats about using the override host

    There are situations when you may not want to use an override host:

    Back to Top