I am having trouble redirecting route53 domain to my S3 bucket.
I have created a working bucket which you can access trough this url:
http://linas.me.uk.s3-website.eu-west-2.amazonaws.com/
The bucket name matches domain name and I am able to setup new record set with linas.me.uk alias target. However when you try visiting http://linas.me.uk 404 gets thrown.
I have tried anything I could think of or find googling but I have hit the wall it seems, any help would be appreciated!
Related
Before you read the rest I am an absolute beginner at deploying website and the end goal would be:
My website I want to load is
site.s3-website.us-east-2.amazonaws.com
and I want all the content to be put on
mydomain.com
So when you visit mydomain.com you see see all the content that is supposed to be on the AWS S3 Site.
I have followed many articles and posts, however I don't seem to be getting the expected results or they seem to be outdated.
The best way is to migrate to route 53.
However, you can set up a redirect or simply set up an CNAME record that resolves to S3 Static website URL.
The last step is to Forward domain to your naked domain name "example.com" to "www.example.com
NOTE: You could just Forward to your bucket using the complete bucket URL with "name masking", however most web crawlers will not see your complete site if you do it that way and web searches will fail.
Hope this helps!
The S3 bucket name must be the same as the domain name, so your bucket should be called mydomain.com. Then just add a cname in your DNS to resolve to mydomain.com.s3-website.us-east-2.amazonaws.com
I have created a redirect from url get.blahblah.com to point to a beta version of our app. I created an S3 bucket, then created a Cloudfront distribution using it, and then added an A entry in Route 53 and everything is working.
Now I wanted to test out updating the URL in S3 so that once we update our final app we can update the URL. I changed the S3 bucket redirect to google.com. When I click on the link in the S3 bucket it correctly redirects to google.com.
But when I go to my get.blahblah.com website, it's still pointing to our beta app and not google.com.
Is there something I have to do in order to make the redirect url "update" in all of this? I'm an AWS noob and getting here took me some time because it's not too straight forward in the guides.
EDIT:
Here is the cache TTL I am talking about that I modified:
I have been trawling forums, blog posts, technical places and I've also got in touch with Cloudflare support and I'm no further forward with this. Cloudflare says that AWS is not accepting the host headers for mine.mydomain.com and returning 403.
I have an S3 bucket setup called mine.mydomain.com, with static website hosting turned on. It gives me an AWS URL to use which works fine to browse the site and any pages within it.
I have created a CNAME record on Cloudflare for mine to point to the AWS URL of the bucket. However when I try to browse to the site using mine.mydomain.com I get Access Denied errors.
What I have been told is that because we're using full SSL I need to create an empty bucket called mine-abc (it could actually be anything I just used that name - just as long as it doesn't have dots in it) and map the CNAME record in Cloudflare to mine-abc.s3.amazonaws.com. When I do that I still get an Access Denied error for mine.mydomain.com. However if I go to mine.mydomain.com/index.html it works. It's also the same if I go to the root of URL I get Access Denied (ie. mine.mydomain.com/issues) but if I go to a page (ie. mine.mydomain.com/issues/index.html) it again works.
So I'm a little stumped.
Configuration for the mine.mydomain.com bucket is:
Public Access Settings - all False
Access Control List - Default
Bucket Policy - effectively Allow "arn:aws:s3:::mine.mydomain.com" (and `"mine.mydomain.com/*"`)
CORS Configuration - Allow GET and HEAD for `.mydomain.com and mydomain.com
Any help gratefully appreciated.
This is another problem I am having, here is the info.
My endpoint for the first bucket works, but not the 2nd bucket, and using my domain name in the browser just doesn't work at all.
Once again I have taken screenshots, this is driving me insane, I have no idea how to correct it, it just doesn't find my root or something.
Record Sets
Buckets
I can't post more than 2 links
If anyone can help me, even PM me, I'll give my login details to take a look, because I'm completely stumped.
You should follow the directions on Setting Up a Static Website Using a Custom Domain.
For the first bucket, the steps are:
Create an Amazon S3 bucket with the same name as your domain (justdiditonlne.com)
Add a bucket policy to make the content public, or modify desired objects to make them publicly accessible
Turn on Static Website Hosting, and you will receive a URL like: justdiditonline.com.s3.amazonaws.com
Create a Route 53 entry for justdiditonline.com, type A, set Alias=Yes and enter the static website hosting URL
For the second bucket:
Create an Amazon S3 Bucket with the desired domain name (www.justdiditonline.com)
Turn on Static Website Hosting, but this time select Redirect all requests to another host name. Enter www.justdiditonline.com.
This should be easy as there is no shortage of pages on custom domains and S3 but for some reason I can't seem to get it to work as expected.
I have a S3 Bucket full of videos. The S3 bucket is called for example "videos.foo.com". I bought the domain "videos.foo.com" and set it up in cloudflare with the cname "videos.foo.com" pointing to "videos.foo.com.s3-website-us-east-1.amazonaws.com".
I can view files in my bucket by going to there full url such as "videos.foo.com.s3-website-us-east-1.amazonaws.com/myvideo.mpg".
My problem is I can't view them by going to "videos.foo.com/myvideo.mpg".
I tried enabling "Redirect all requests to another host name" and entering "videos.foo.com" but that didn't work either. To note, I will 'not' be hosting a site at "videos.foo.com" just serving files.
All the files have permissions everyone: open/download.
If anything sees the error in my ways please let me know. In the mean time I'll keep searching and going through trial and error. Thanks!
Nginx S3 proxy helps to solve that problem, please check more details: https://stackoverflow.com/a/44749584/290338
A bucket can be named differently, the only performance rule is to have EC2 and a bucket in the same geo location.
You may need to configure the Route 53 record as an alias rather than a cname. In R53, edit your record set and configure it like this -
Type: A - IPv4 address
Alias: Yes
When you click in the Alias Target textbox it will drop down a list that contains your S3 bucket (if it's properly configured). It can take a while to load that list so be patient. Select your bucket and hit save.
Check out this document for more info - http://docs.aws.amazon.com/AmazonS3/latest/dev/website-hosting-custom-domain-walkthrough.html