algorithmicCoder
algorithmicCoder

Reputation: 6789

Handler for static file Google App Engine

New to App Engine. I need to verify my website with google webmaster.

Here's what I've added to app.yaml

handlers:

- url: /img
  static_dir: static/img

- url: /google6432717e3cdee901.html
  static_files: /google6432717e3cdee901.html
  upload: /google6432717e3cdee901.html

However visiting site.com/google6432717e3cdee901.html gives me a 404 error.

How do I fix my handlers so I can visit the file and get verified?

Thanks for your help!

Upvotes: 0

Views: 195

Answers (1)

Wooble
Wooble

Reputation: 89897

Don't include the leading / in the static_files and upload directives (unless the files really are at the root of your filesystem, which is probably a Bad Idea).

Upvotes: 3

Related Questions