Getting started
Domains & Origins

Domains & Origins
Request settings
Cache settings
Custom VCL
Image optimization

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

Logging endpoints
Non-Fastly services

Streaming logs
Debugging techniques
Common errors

Account info
Account management
User access and control


    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>
      • If you are using Google Cloud Storage as your origin, type <your bucket name>
    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