amazon-cloudfront

Cloudfront redirect www to naked domain with ssl [closed]

杀马特。学长 韩版系。学妹 提交于 2019-12-17 06:23:16
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Forgive me if this has been asked before, there are a number of resources that touch on this, but nothing seems to fit for my specific (https) use-case. I'm trying to redirect https://www.example.com to https://example.com. Likewise, this should work for http://www.example.com to https://example.com. I have set

Amazon CloudFront Latency

做~自己de王妃 提交于 2019-12-16 20:04:11
问题 I am experimenting with AWS S3 and CloudFront for a web application that I am developing. In the app I'm letting users upload files to the S3 bucket (using the AWS SDK) and make it available via CloudFront CDN, but the issue is even when the files are uploaded and ready in the S3 bucket it takes about a minute or 2 to be available in the CloudFront CDN url, is this normal? 回答1: CloudFront attempts to fetch uncached content from the origin server in real time. There is no "replication delay"

AWS Cloudfront SetCookie in PHP

不想你离开。 提交于 2019-12-13 15:13:54
问题 I am trying to set a cookie to view private content from AWS Cloudfront http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-setting-signed-cookie-custom-policy.html They give an example cookie header: Set-Cookie: Domain=d111111abcdef8.cloudfront.net; Path=/; Secure; HttpOnly; CloudFront-Key-Pair-Id=APKA9ONS7QCOWEXAMPLE I created the following php code setcookie ( 'CloudFront-Key-Pair Id', 'MYID', 0, '/', 'mycloudfrontsub.cloudfront.net', true, true ); But the

How can I debug AWS Cloudfront signed URL access denied?

♀尐吖头ヾ 提交于 2019-12-13 12:31:08
问题 Here is my sign URL function: private function signUrl($lesson) { $cloudFrontClient = AWS::createClient('CloudFront', [ 'region' => '<my-region>', 'version' => '2017-03-25' ]); $streamHostUrl = 'https://<mydomain>.cloudfront.net'; $resourceKey = $object->s3_video; $expires = time() + 300; // Create a signed URL for the resource using the canned policy $signedUrlCannedPolicy = $cloudFrontClient->getSignedUrl([ 'url' => $streamHostUrl . '/' . $resourceKey, 'expires' => $expires, 'private_key' =

Magento - Amazon Cloudfront CDN and Caching

ぐ巨炮叔叔 提交于 2019-12-13 04:34:39
问题 I am trying to understand CDN and caching and am not finding the answer. How do you make amazon cdn cache the images from your origin servers cached images? And is there a way to test for it? I have the CDN origin mapped to my server, so when it is not finding http://cdn.mywebsite.com/media/catalog/product/cache/1/small_image/190x/9df78eab33525d08d6e5fb8d27136e95/i/m/img101.jpg it instead looks for http://mywebsite.com/media/catalog/product/cache/1/small_image/190x

How to access multiple S3 origins (in the same bucket) from a single cloudfront distribution?

a 夏天 提交于 2019-12-13 04:06:56
问题 I have a cloudfront distribution that is working fine with an S3 origin. After adding a second origin, I also add a new cache behaviour so I would get: first.domain.com: goes to the first origin (via the default * cache behaviour path) first.domain.com/elsewhere: goes to the new origin (via a new elsewhere/* cache behaviour path) I feel something maybe wrong or missing, but can't tell from the docs what it could be. After reading these answers: One Two I can't still figure what is not working

Cloudfront with custom origin and identical domain

╄→гoц情女王★ 提交于 2019-12-13 03:54:11
问题 Let's say a website with the domain www.example.com is hosted on a LAMP server of a webhoster, which is not Amazon. The domain is managed by Route53. Is it possible to somehow keep all settings on the LAMP webserver and still use www.example.com as the domain for Cloudfront? Like: Client -> www.example.com -> Cloudfront Edge Server -> Custom origin available over www.example.com on LAMP webserver of third party webhoster Basically, I want to use www.example.com for both the Cloudfront Edge

cloudfront private time limited url

自闭症网瘾萝莉.ら 提交于 2019-12-12 20:03:58
问题 I have a client that wants to sell tutorial videos online. I already got previews of his tutorials streaming from CF (This is public). Now I want to use the c# sdk to generate private, time limited URLs to allow customers who purchased the tutorials to download them for a limited time period. Once the payment has been confirmed, I want to generate a URL and send it to the client via email. Does CF/.NET SDK support this? Can someone point me at a sample. I have searched Google, and got a

RSA encryption routines for Google App Engine Python

半城伤御伤魂 提交于 2019-12-12 19:36:26
问题 Hey, I'm trying to generate a signed url in python. Basically, I'm trying to access protected Amazon Cloudfront content from a Google App Engine server. Amazon has provided me with a pem file that has content which looks like: -----BEGIN RSA PRIVATE KEY----- MIICWQf....a lot more characters...7bx8WiUk -----END RSA PRIVATE KEY----- According to Getting started with secure AWS CloudFront streaming with Python, a signed url is generated through EVP as such: key = EVP.load_key_string(priv_key

Relationship between Origin Access Identities and CloudFront Signed Urls

冷暖自知 提交于 2019-12-12 18:29:39
问题 So I've been following guides on CloudFront and S3 and I feel like Im still missing a core piece of information in the relationship between Origin Access Identities and CloudFront Signed URL's. What I want : A private CDN to host audio snippets (few seconds in length) and low res images. I only want these files to be accessible when requested from a specific domain (the domain the webapp will live on) and maybe a testing server. So my web app can get the files but person just can't access