Configure AWS CloudFront for Use as Reverse Proxy
You can configure AWS CloudFront for use as the reverse proxy with custom domain names for your Auth0 tenant.
- Log in to AWS, and navigate to CloudFront.
Click Create Distribution.
You can choose the delivery method for your content. Click Get Started under the Web section.
- Configure your distribution settings. Under Origin Settings, here are the values you'll need to change:
|Origin Domain Name||Set this to the Origin Domain Name value obtained from the Auth0 Dashboard during the Custom Domains setup process|
|Origin ID||A description for the origin. This value lets you distinguish between multiple origins in the same distribution and therefore must be unique.|
|Origin Protocol Policy||Set to
|Alternate Domain Names (CNAMEs)||Set to your custom domain name (the same one your configured in the Auth0 Dashboard)|
- Provide information on the Origin Custom Headers (the Header Name and Value fields appear only after you've provided an Origin Domain Name):
|Header Name||Set to
|Value||Set to the CNAME API Key value that you were given immediately after you verified ownership of your domain name with Auth0|
- Configure the Default Cache Behavior Settings. Here are the values you'll need to change:
|Viewer Protocol Policy||Select Redirect HTTP to HTTPS|
|Allowed HTTP Methods||Select GET, HEAD, OPTIONS, PUT, POST, PATCH, DELETE|
|Cache Based on Selected Request Headers||Select Whitelist|
|Forward Cookies||Select All|
|Query String Forwarding and Caching||Select Forward all, cache based on all|
- Scroll to the bottom of the page and click Create Distribution.
You'll see your newly-created distribution in your CloudFront Distributions list. Note that the Status will reflect
In progress until the distribution is Deployed.
- Add a new CNAME record to your DNS for your custom domain pointing to the CloudFront Domain Name for your Distribution. This can be found by clicking on your Distribution ID, under the General tab, Domain Name (for example,