8 votes
Accepted

If I only serve gzipped version of my content, should I add the vary accept encoding header?

I have decided to serve only gzipped version of my pages If you're only serving files that you've compressed using gzip, then using Vary: Accept-Encoding will be of no benefit since there won't be ...
  • 15.1k
4 votes
Accepted

PHP doesn't work on Amazon AWS S3 for email contact form

S3 web site hosting is strictly for static content. Nothing stored in S3 is executable by S3, such as PHP scripts. This is by design, and not a configuration issue with your site. You can host a ...
4 votes
Accepted

SEO impact of hosting static HTML on Amazon S3 vs. webserver

You may be misunderstanding the concept, here. Files on S3 cannot be modified, but they can be overwritten, and overwriting a file does not require deleting the old file, first. You simply upload a ...
4 votes
Accepted

IllegalLocationConstraintException on CloudFront (with S3)

My issue was because my CloudFront origin was not in us-east, and when you auto-select your bucket's origin in CloudFront, it doesn't add the location prefix to the url. So make sure you add your s3 ...
  • 171
3 votes

Avoiding SSL certificate errors with Amazon S3 subdomain

Rename to static-example-com.s3.amazonaws.com - this would work with the out of the box wildcard cert they supply. Take a look at what AWS recommends here. Also, Id read through the answer here It ...
  • 206
3 votes
Accepted

ERR_TIMED_OUT when accessing S3 bucket by a custom domain that uses Route53

It turned out that HSTS headers were being served by the previous hosting. HSTS set all HTTP requests to example.ca to be internally redirected to HTTPS before being sent. Because custom domain ...
3 votes
Accepted

AWS Elastic Beanstalk - Wordpress keeps resetting plugins and themes

Amazon has instructions for deploying WordPress on Elastic Beanstalk. The part that will prevent your problem is the section "Enable WordPress to Store Assets in Amazon S3". You have to install ...
3 votes

How to force a 302 redirect to index.html when hosting on S3?

Firstly, make sure you are only linking to one version of the URL, whether it is /blog/ or /blog/index.html (I'd prefer the former since it's shorter and simpler). The best solution with regards to ...
3 votes
Accepted

What is the most intelligent way to store tiny SVG images in S3 Bucket for a single web page consumption?

I ended up creating a composite SVG Sprite which plays well with CSS and other style post-processors. Size is very small and eliminates the overhead for more than one single HTTP request per page.
2 votes

Why shouldn't I use Amazon S3 for hosting a static webpage

S3 isn't meant to be the ONLY tool from AWS for static website hosting. The recommended approach is to put CloudFront in front of the S3 instance so that CloudFront can handle caching. I believe this ...
2 votes

Why shouldn't I use Amazon S3 for hosting a static webpage

The problem is in the "pay as you go" part. If you get tons of traffic (ie: a DOS attack or a very popular blog post or file) you will PAY for it. AFAIK there isn't still a feature to put a cap to ...
2 votes
Accepted

Clients domain does not load in china, instead another site loads

I have just checked with several DNS lookup tools that the address is not tampered with in China. I have even loaded the website using a Chinese proxy. Again, all is normal. I suspect that the client ...
  • 246
2 votes
Accepted

How to setup MX records for a static AWS S3 websites

Patrick's comment is correct: A CNAME entry at the apex of the domain is not allowed. Some DNS systems let you put one there anyway. For web sites, this mostly seems to work, but it breaks mail. ...
2 votes

Tell wordpress to save and organize images into folders?

Yes, it is possible. Yes, it is a good idea (for all sorts of reasons, from simplifying management to SEO). There's a load of plugins designed to do just that. Just search for "wordpress media ...
  • 1,802
2 votes
Accepted

Facebook share not picking up Open Graph tags from s3 static hosting

So I figured out what was the issue. Not sure why that is the issue though... When I uploaded the HTML file through S3 SDK, I thought that Content-Type was a mandatory field. So I tried various types(...
1 vote

Hosting static aboutus page on S3 bucket and linking to godaddy

It is not possible to use DNS to point different pages on the same host name at different servers. All the documents on www.example.com have to be served from the same server. DNS can only point ...
1 vote

How to use AWS S3 Route 53 with Gmail business domain?

Step 1: In the AWS Route 53 console, get the name of the four name servers they provide, you will need these for step two. Step 2: Log in to the website of the Registrar from whom you bought your ...
  • 2,241
1 vote

Uploading images for Wordpress in AWS Elastic Beanstalk application

The easiest way to do this is to download the application add your photos on the correct directory and upload and deploy 1. First, download the latest version zip file Elastic Beanstalk Beanstalk - ...
  • 552
1 vote

How do I use Amazon s3 to host audio files linked from my website?

There is no need to have your website hosted on Amazon. You can use S3 to store your audio files and then use the public links such as https://s3.amazonaws.com/bucketname/audiofilename inside your ...
  • 3,787
1 vote

Amazon s3 error 500 when instantiating S3Client

Try to put use Aws\S3\S3Client; use Aws\S3\Exception\S3Exception; Just after the require statement and at the top before any other PHP code.
  • 11
1 vote

Should we use Amazon CloudFront? (We need mitigate cost attacks)

A user or bots downloading the same file again and again is not a DOS attack. Cloudflare provides unmetered DOS attacks: Cloudflare’s unmetered mitigation of DDoS stops illegitimate volumetric ...
  • 32.7k
1 vote

How to debug a non working https setup that uses Amazon S3, route53, Cloudfront?

You unfortunately do not provide the name involved so people can not really troubleshoot things except by throwing guesses. Here is my generic (not exhaustive and not all possible corner cases) quick ...
1 vote
Accepted

SEO - why my sites images are not showing in google search

Google should only return image results under Google image search. So if you search for site:example.com and click on the image search afterwards, it should just return your results. Google will ...
  • 32.7k
1 vote

Amazon S3 data usage and request counter

(Answer By @Frank) You can enabble logging on the bucket and then use the API to figure out what is going on. You can also access your live usage figures in your AWS Account Console. http://docs.aws....
1 vote

Amazon S3 currency charges

According to the Billing FAQ, it is now possible to choose a non-USD currency for your AWS account: Q: Which currencies can I choose from? AUD – Australian Dollar CHF – Swiss Franc DKK – Danish Krone ...
  • 111
1 vote

What's the difference between Amazon's EC2 and S3 services?

Amazon S3 offer storage service. where you can read, write and access your data via REST/SOAP from Cloud. EC2 offers renting of virtual computers(like how we use our vmware,xenservers), you can ...
  • 11
1 vote

What is the 'right way' to serve static content from my AWS S3 bucket on my ElasticBeanstalk deployment?

I initially tried mod_rewrite in my .htaccess ... You could perhaps use mod_rewrite together with mod_proxy to create a reverse proxy to your CDN. This has the advantage of hiding the location of ...
  • 42k
1 vote

SEO failure: AmazonS3 + AngularJS + Many pages not being crawled or indexed

It seems you have a lot going on. Your robots.txt needs to be looked at. I will leave it at that. Then... Your text sitemap needs to be html for the site and xml for the search engine, not plain ...
1 vote
Accepted

Double redirect - implications on performance and cost

Double redirects are less efficient: The browser makes a GET request for each Each hostname (or subdomain) requires a separated DNS lookup. In your chain you will have: 3 GET requests Two DNS ...

Only top scored, non community-wiki answers of a minimum length are eligible