Tag Info

Hot answers tagged

10

EC2 = Elastic Cloud Computing S3 = Simple Storage Service One is for application hosting, one is for data storage.


7

I'm still shocked to read that people assume that Content Delivery Networks are expensive, most charge as little as 0.20c per a GB. Serving static websites on CDN's is amazing - you get the performance of a dedicated server without actually paying for it, plus you have a server in all major regions around the world so effective its actually better than a ...


5

Amazon IAM ( http://aws.amazon.com/iam/ ) service gives you the ability to create accounts for students with separate password/credentials and with access to only specified AWS resources. You can create one account for all students there, or create a group called "Students" and assign all your students to that group. After doing that you need to specify an ...


4

Why do you want to serve those static assets with a gz extension at all? Despite being the common indicator for ages, file extensions are actually an inferior and inaccurate mechanism to communicate a MIME type in the first place: ideally, web resources should be entirely agnostic to file extensions and only communicate their content by means of appropriate ...


3

Should you be using Amazon S3 or CloudFront? CloudFront is the CDN that accelerates the delivery of static assets.


3

The S3 server could be farther away from you and so it takes longer for the bytes to travel to you. Using Cloudfront or another CDN puts your content on very fast servers all across the world which will increase the speed not just for you, but for users all over no matter where they are located. Cloudfront also supports compression all though you have to ...


3

A common way that CDN services work is whats known as origin based. What this means is you can have a secret. folder were all the content you want the cdn to be looking for is help. You allow users to upload to this folder normally and when in your code you give a URL like. cdn.example.com/images/my.png the cdn service will look at your site and download a ...


3

So is there a way in S3 to set a dynamic Expires that is always one year from the request date? Not that I know of, and I doubt that dedicated support for this will be considered by the AWS team: You are probably aware that one can't set a dynamic Expires: ... value as such because The only value valid in an Expires header is a HTTP date; anything ...


3

Within Amazon S3 you pay for the bandwidth and disk space that you use. With hostgator they say unlimited bandwidth and disk space, but if you read the terms of service they say they give you a monthly limit on bandwidth. So if you're exceeding your limit I would move your files to S3.


2

Three simple steps for this: Your S3 bucket must be named the same as your desired subdomain: "www.domain.com". You need to setup a CNAME record to in your DNS to point your subdomain to the S3 bucket: CNAME www.domain.com -> www.domain.com.s3.amazonaws.com You need to make you splash page the "index document" for the bucket so that it will open ...


2

The best solution I can think of is point an A record in your DNS to the elastic IP from AWS. This has the advantage that it never actually hits your host - it goes straight from the DNS to AWS, so it should be faster as well.


2

Looks like someone found a solution for this problem. Apparently you need to send the proper content-type header. THIS IS HOW YOU FIX IT In A3 Click on your .exe file choose Actions and bring up properties Choose Metata Data Add more metadata Choose Key: Content-Disposition Value: attachment then type this after attachment; ...


2

Amazon recommends using AWStats and includes instructions on how to set up an AWStats configuration file. You will also need to set up some method to automate downloading the logs to where your AWStats installation is. Personally I use cron to set off a Python script that uses boto to grab the files. """s3logDL.py Downloads S3 logs and deletes old logs ...


2

Moving images from one host to another isn't enough. First are your images compressed and optimized? Second you should be using a CDN as well as s3 together not just serving static content from s3. The CDN's will cache the static content coming from s3 and serve that to your visitors quicker than s3 would.


2

Yes Google Apps engine costs less. So if you can live with the restrictions (programming model!) of app engine, it is the by far more cost effective solution.


2

Sorry but no, you can't. WordPress is entirely scripted in PHP. If you host a copy of a WordPress installation on a S3 bucket you will be lacking the PHP interpreter and the mySQL engine. The whole deal with EC2 is having a virtual machine so you can run services like a mysql server or a php instance. Anyway, with some elbow grease you could host a static ...


2

Or does it work a different way like the images are still uploaded to my server but then I have to move them to the amazon server either manually or through a CRON job? Basically can someone explain to me how it works? Amazon's CloudFront supports "origin-pull" (via "custom origin"), where you tell it to look at your site for the files if it doesn't ...


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.


1

I have no clue if this is going to work well, but neither have I if it's about AngularJS and SEO in general. There is very little evidence it works the way it is supposed to do. I would suggest leaving PhantomJS in the dark, it is known to have issues and is not very lightweight. Also considering you don't want to write/set up a backend I would use Firefox ...


1

It's actually a bit overpriced in terms of bandwidth. They also had, until very recently, an issue were you couldn't map both your @ and your www A record to your site (so you either had mydomain.com accessible, or www.mydomain.com accessible). This however was fixed in a very recent update. Personally, I think they're a bit overpriced, and you are lacking ...


1

Jeremiah is right, you should choose solution that is geographicly optimized for you and your users. In case you ll deliver e.g. from US and you have bunch of customer in India, load time will be decreased. What kind of static content do you have? Images compression and optimalization as said above should be easiest and quiet helpful solution, but imho you ...


1

you should use Amazon IAM service http://aws.amazon.com/iam it will allow you to create subaccounts for your students and they will be able to publish they website the same way as you publish with your main account


1

You should choose one version to use and 301 redirect from one to the other. I don't know if you can use a htaccess file on S3 but if not you may be able to do the redirect from you domain name's control panel.


1

If S3 is going to cost you $1500/month -- you can get a full rack with power and managed Internet for close to that at a professionally managed data center. And if you find a data center that does half or quarter racks, you could probably get that down even further. If you have a web server now, a second "image-data-only" web server, a firewall, and a ...


1

This data is obviously very import to your business. So managing the risk of data loss is very important as well. Take the following into consideration: Amazon S3 is designed to provide 99.999999999% durability and 99.99% availability. Basically, your data will be very well protected against hardware failure as well as against things such as power & ...


1

Not sure I'm totally following, but you could do one of two things as a hack I think... 1) If you know the correct URL you could redirect from your domain to the other URL (this may be bad for traffic later though when your domain rolls to the correct "live" one) 2) You could set up a page on the new domain with a big iFrame that loads the other URL. The ...


1

Host everything you can. When you can't, delegate :) Now I am sure someone will say the exact opposite but which one you choose depends on how much control you like. Of course, can't is sometimes subjective, it could have to do with cost, latency, bandwidth, etc. Most sites I've seen host their own data except for large high-bandwidth media such as large ...


1

You can try hosting static content at hetzner, it allows 4tb of free (included) traffic, 6.5 euros per tb over the free limit. But you would pay more for the storage.


1

The examples you shared here don't require rewriterules on amazon s3 itself, the redirections all happen on the www.example.com site: so either in .htaccess or vhost conf or httpd.conf: Options +FollowSymlinks RewriteEngine On RewriteRule ^/(about|welcome|contact)\.html$ http://mybucket.s3.amazon.com/index.html [R,L] Granted, this will change the URL ...



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