Note: always replace “client.com” with your hostname, “client.backend.verbolia.com” with the given verbolia hostname and “/path_to_verbolia/” with the agreed routed url pattern.
-
Go to Amazon Cloudfront Service management page and click the Distribution ID:
-
Click the Origins tab:
-
Choose Create Origin:
Origin Domain Name = client.backend.verbolia.com
-
Then click on Behaviors tab and Create Behavior:
Path pattern is “/path_to_verbolia/*
Origin is “custom-client.backend.verbolia.com”
Cache Policy must be “CachingDisabled”
-
Before Clicking to “Create behaviour”, under Origin request policy, create a new policy:
Choose a name “UserAgentRefererHeaders”, Description “Policy to forward User-Agent and Referer headers to origin”
Under Origin request settings, select “Include the following headers” and add “Referer” header from the pre-defined list and add custom “user-agent” header.
Select “All” for “Query strings” and “Cookies” settings. and click create.
-
Finally, select the newly created Origin request policy in the Create behavior definition and click “create behavior”