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 ...
user avatar
  • 15k
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 ...
user avatar
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 ...
user avatar
  • 171
4 votes

Pointing Namecheap domain to AWS S3 static website with HSTS .dev TLD

The website started working but I completely changed my approach. I ignored the problem that I can't connect through the domain name using HTTP. Decided to just start setting up HTTPS for the site ...
user avatar
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 ...
user avatar
  • 206
3 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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
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.
user avatar
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 ...
user avatar
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 ...
user avatar
2 votes
Accepted

Amazon S3 currency charges

While I cannot find any documented page on AWS documentation to confirm this, from personal experience I can verify that unfortunately it is not currently possible to pay Amazon Web Services in GBP (£)...
user avatar
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 ...
user avatar
  • 246
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 ...
user avatar
  • 1,794
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(...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 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.
user avatar
  • 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 ...
user avatar
  • 32.6k
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 ...
user avatar
  • 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 - ...
user avatar
  • 552
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 ...
user avatar
  • 41.3k
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 ...
user avatar
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 ...
user avatar
1 vote
Accepted

Wordpress Reverse Proxy with Cloudfront and S3

Easy enough. CloudFront supports multiple origin servers, and uses path patterns to determine which origin server to forward the requests to... so multiple, independent backend systems, even ...
user avatar
1 vote

Allowing Google to index images on s3

Allow: * should actually be be Allow: /. That could be the issue... because, really, using Allow: is somewhat meaningless by itself -- its purpose is for allowing a sub-path within a denied path. As ...
user avatar
1 vote
Accepted

CNAME to S3 returns the S3 URL

Figured it out - in have two buckets in S3 - mydomain.com and www.mydomain.com. mydomain.com is where the site is, and I set www.mydomain.com to redirect to mydomain.com.s3-website-ap-southeast1....
user avatar
  • 31
1 vote

CNAME to S3 returns the S3 URL

The reason you see a 301 in your curl is because www.mydomain.com redirects to mydomain.com from the S3 endpoint for www.mydomain.com. This is a common configuration when using S3 for your static ...
user avatar
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 ...
user avatar
  • 32.6k

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