简体   繁体   English

静态文件Google App Engine的处理程序

[英]Handler for static file Google App Engine

New to App Engine. App Engine新手。 I need to verify my website with google webmaster. 我需要使用Google网站管理员验证我的网站。

Here's what I've added to app.yaml 这是我添加到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. 但是,访问site.com/google6432717e3cdee901.html会给我404错误。

How do I fix my handlers so I can visit the file and get verified? 如何修复我的处理程序,以便我可以访问该文件并获得验证?

Thanks for your help! 谢谢你的帮助!

不要在static_filesupload指令中包含leading / (除非文件确实位于文件系统的根目录下,这可能是一个坏主意)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM