Documentation Index

Fetch the complete documentation index at: https://supporthub.usheru.com/llms.txt

Use this file to discover all available pages before exploring further.

How to mask Custom Domains for Moviesites

Prev Next

Domain Masking for usheru Moviesite

  1. Create a CF function for that specific client and copy the code from any existing client function. If a function already exists for the client just add the new moviesite domain and list of possible slugs in that function.
     

  2. Save changes and Publish function. If it’s a new function attach it to the client's CF distribution on Viewer Request for all 3 behaviours.
     

  3. Create new certificate with the vanity url, cdp url and *.usheru.com in ACM certificate manager
     

  4. Add vanity url in CF distribution and select the new validated certificate.
     

  5. Add the distribution id as CNAME record for the vanity url. Add redirect from naked to www, and the best way to do this is to add a forwarding in domain management. If that’s not possible add A record to redirect-server(52.19.177.10) and add domain config in nginx. Or send records to the client if there is no DNS access.

  6. Add the vanity url in static.usheru.com bucket’s permission CORS for the fonts to work.
     

  7. Add vanity urls in the cdp’s www.musikincinemas.com CORS policy. If it's the first moviesite for the client add a new CORS policy.
     

  8. Add the vanity url in the hostname filter of the analytics dashboard so the events are tracked.