3

I want to serve the static data for my website from Google App Engine.

How do I configure GAE to serve static content?

3
  • I'd be wary of Google cracking down on this at some point. Commented Feb 1, 2010 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. Commented Apr 13, 2012 at 6:55
  • It's Google App Engine, not Google CDN Engine. Commented Apr 13, 2012 at 13:49

3 Answers 3

4

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.

handlers: - url: /stylesheets static_dir: stylesheets 
1

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

handlers: - url: / static_dir: / 
0

I wrote article step by step to setup GAE to host static files. http://www.ivankristianto.com/internet/tools/setup-your-google-app-engine-application-to-use-your-own-domain/1656/
That may interest you.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.