October 22, 2018

Origin Hostname Rewrite

  Zone Management

     

Origin Hostname Rewrite searches text resources for your origin server hostname and replaces it with the domain for the zone. If your domain is www.example.com and your origin server is origin.example.com, it'll find all occurrences of //origin.example.com and replace it with //www.example.com.

To determine if a file should be searched, the Content-Type header and file extension is checked for one of the following types:

Content-Types
  • text/html
  • text/css
  • application/x-javascript
  • application/javascript
  • text/javascript
File Extensions
  • .html
  • .css
  • .js
  • .ejs