8

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 uncompressed copies of the files to serve to clients that don't send Accept-Encoding: gzip in the HTTP request. Most clients these days do send this, so you ...


4

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 static website on Amazon S3. On a static website, individual web pages include static content. They may also contain client-side scripts. By contrast, a ...


4

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 location like so: bucketname.s3.ap-east-1.amazonaws.com


3

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 SEO would be to use a canonical tag. Put this inside the <head> tag: <link rel="canonical" href="http://yoursite.com/blog/"> That means that when ...


3

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 looks like others have had the same issue you are having now.


3

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 new file with the same name. The old file does not go away unless and until the new upload is complete and successful. A failed or partial overwrite of an ...


3

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 the "W3 Total Cache" plugin in WordPress and configure it to use "Amazon Simple Storage Service S3". When you have done that, plugins and themes will no longer ...


3

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 HTTPS was not yet configured for the S3 bucket, the HTTPS request was timing out. Note that S3 does not support custom domain HTTPS directly, only through ...


3

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

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 will also eliminate your issue with paying a bunch for an increase of traffic since CloudFront will use it's cache to serve the files and not hit S3. Of course, ...


2

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 what you pay. You can set billing alerts, but if your billing reaches your maximum budget the only option you have is to shut the site down or you will pay for ...


2

You need a credit card, but as long as you don't use it "too much" you should be within the Free usage tier. You get 5GB, of storage, 2,000 PUT requests, 20,000 GET requests.


2

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 (£), or any currency other than USD ($) for that matter. I'm also a UK-based AWS customer and can confirm that in addition to the exchange rate, the UK banks (e....


2

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 simply has some adware infection. If there is some proxying going on, it's a small affair, one ISP at most.


2

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 instead I followed a tutorial that explained how to set up SSL for an AWS S3 static site using: Amazon Route 53 Amazon CloudFront Amazon Certificate Manger ...


2

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 library management plugin" in your preferred search engine and pick one that suits your specific needs.


2

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(gzip, identity and etc...) and none of them made any difference, until I deleted the field and specified nothing. I guess the default type is set when field is ...


1

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.


1

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 traffic at the Cloudflare edge. All Cloudflare plans include unmetered mitigation without fear of being dropped. Cloudflare will cache these file formats and ...


1

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 but logical list of steps to execute in order to check for timeouts, and you should complete, in that order, each step successfully before going to the next ...


1

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 domain name. Input those four name servers provided my Route 53 into the Registrar's management console. You do not need any other record of any type whatsoever ...


1

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 - Application Versions Click on the source code link to download 2. Unzip the files copy the photos on the correct folder. 3. Zip and Upload Compress the ...


1

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 index whatever is embedded in the page regardless of whether you're using a CDN or not, and so 'View Image' will display it on the CDN while 'Visit Page' will ...


1

(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.amazon.com/AmazonS3/latest/UG/ManagingBucketLogging.html


1

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 EUR – Euro GBP – British Pound HKD – Hong Kong Dollar JPY – Japanese Yen NOK – Norwegian Krone NZD – New Zealand Dollar SEK – Swedish Krona USD – United States ...


1

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 your CDN. For example, in your HTML, reference your assets in a "virtual" subdirectory (or subdomain), eg. /cdn. src="/cdn/WebsiteData/images/img1....


1

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 text. Submit that sitemap to search engines (you can create your sitemap without the #! and it will work.) Create a Webmaster Tools account for Google > add site >...


1

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 lookups (HTTP and HTTPS use the same DNS lookup for example.com) If it is convenient, it would be better to configure http:// www.example.com to redirect directly ...


1

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 systems that aren't inside AWS, can all "own" one or more paths under a single hostname, with one of them being the default and owning all the paths not explicitly ...


1

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 it stands, it seems possible that your file is being misinterpreted. Anything not denied is supposed to be implicitly allowed. If you want to allow ...


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