Reputation: 579
I'm using an EC2 instance (AWS) to run my server. I've been testing out a few things and want my website and server domains to be HTTPS for a cookie related issue. I was able to add my website (hosted on S3 as of now) on cloudfront to get a secure domain. I tried to do the same with my server URL. However My server is not working on the new Cloudfront URL. I have my webapp on Cloudfront and It's working completely fine on the new generated cloudfront URL.
Details:
Questions
References
Upvotes: 2
Views: 1225
Reputation: 200446
So I try to access it by d7xxxxxxxxx.cloudfront.net:3001 (server is running on port 3001)
You would only access the CloudFront distribution at ports 80
and 443
. CloudFront doesn't mirror the ports of the origin server, it only serves the default ports for HTTP and HTTPS. You would configure port 3001 in your origin settings within CloudFront as the origin HTTP port.
Upvotes: 2