Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have my js files which I have uploaded into the Amazon S3 and linked it with the Cloudfront.

I got a url something like this :

But opening that url in my browser ( I'm getting an error ) :

<Message>Access Denied</Message>

But what I want actually is to use the url and add them to my webpage. How could I do that?

share|improve this question
up vote 3 down vote accepted

You need to set the ACLs on your S3 objects so that they're world readable. By default they're not.

share|improve this answer
Thanks that works, the access denied error went off. Now it shows only the xml file. But what I want to show is the js that I uploaded into my s3 bucket. – sriram Oct 11 '12 at 11:00
The URL you've pasted above doesn't contain a path to the actual .js file. Find the full path of your .js file and add it to the end of your name. For example: – Alastair McCormack Oct 11 '12 at 11:32
Thanks that works! – sriram Oct 11 '12 at 11:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.