LOG IN SIGN UP
Documentation

Specifying an override host

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 Edit configuration button and then select Clone active. The service version page appears.
  4. Click the Settings tab. The Settings page appears.

    the Overriding host area of the settings

  5. Click the Specify an Override Host button on the lower right side of the page.

  6. Type the desired host name. For example, origin.example.com.

    Set Override host in Service Configuration

  7. Click the Save button. If you are using Amazon S3, set your default host to <yourbucket>.s3.amazonaws.com. If you are using Google Cloud Storage, set your default host to <your bucket name>.storage.googleapis.com. 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