Dan
Dan

Reputation: 250

AWS Cloudfront to my web server

Is there a way to point an AWS Cloudfront instance to my own personal web server not hosted in AWS. So it's not an EC2 or a ELB instance. It's a custom web server hosted with another host. Is this possible? I can't seem to configure this an origin?

Upvotes: 4

Views: 6382

Answers (1)

Muhammad Soliman
Muhammad Soliman

Reputation: 23756

Yes, You can do that. When creating distribution, In the Origin Settings section specify your domain as the "Origin".

enter image description here

Suppose you want make CloudFront for example.com Do the following steps:

1) Create a subdomain for your application us.example.com

2) Create distribution with the Origin to us.example.com it will give you a domain name like this d2uhnp5egk65ug.cloudfront.net

3) adjust settings for your naked domain to point to your cloud front distribution d2uhnp5egk65ug.cloudfront.net.

Now by using CNAME example.com can point to distribution d2uhnp5egk65ug.cloudfront.net that might have multiple origins in the backend like "us.example.com" and "uk.example.com"

Upvotes: 4

Related Questions