Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 want to serve the static data for my website from Google App Engine.

How do I configure GAE to serve static content?

share|improve this question
I'd be wary of Google cracking down on this at some point. – ceejayoz Feb 1 '10 at 16:50
@ceejayoz Why? Google has clearly-stated limits on static, as well as dynamic file access. Using GAE as a static file-storage/caching solution doesn't go against their expectations. – Evan Plaice Apr 13 '12 at 6:55
It's Google App Engine, not Google CDN Engine. – ceejayoz Apr 13 '12 at 13:49
up vote 4 down vote accepted

The documentation on how to get GAE to serve static content is here: Using Static Files.

It's rather simple, you just define a static directory in your app.yaml file.

- url: /stylesheets
  static_dir: stylesheets
share|improve this answer

You want all files served as static so should use this:

- url: /
  static_dir: /
share|improve this answer

I wrote article step by step to setup GAE to host static files.
That may interest you.

share|improve this answer

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.