Specifying an override host

  Last updated April 24, 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:

Override 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.

    the Overriding host area of the settings

  5. Click the Specify an Override Host button. The Add an override host header window appears.

    Setting Override host

  6. 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 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