App Engine新手。我需要验证我的网站与谷歌站长。
下面是我添加到app.yaml中的内容
handlers:
- url: /img
static_dir: static/img
- url: /google6432717e3cdee901.html
static_files: /google6432717e3cdee901.html
upload: /google6432717e3cdee901.html
然而,访问site.com/google6432717e3cdee901.html
会给我一个404错误。
我如何修复我的处理程序,以便我可以访问该文件并得到验证?
谢谢你的帮忙!
发布于 2012-07-27 23:03:32
不要在static_files
和upload
指令中包含前导/
(除非文件确实位于文件系统的根目录中,这可能是个坏主意)。
https://stackoverflow.com/questions/11682989
复制相似问题