我有示例app.yaml,但是当我完成部署时试图查看链接时,会得到这个错误:
This xxxxxxx.appspot.com page can’t be found
No webpage was found for the web address:
http://xxxxx.appspot.com/index.phpAPP.YAML设置:
runtime: php55
api_version: 1
handlers:
# Serve images as static resources.
- url: /(.+\.(gif|png|jpg))$
static_files:
upload: .+\.(gif|png|jpg)$
application_readable: true
# Serve php scripts.
- url: /(.+\.php)$
script: index.phpdir中的文件是:
app.yaml
index.php
post.php
pic.PNG发布于 2019-11-22 12:18:42
您可以看到相关的问题here。
在GAE中,当声明某个路径静态时,它将被解释为一个非代码路径。因此,PHP环境中运行的脚本无法访问该路径中的所有文件。
尝试将所有静态文件放在www.子文件夹下,而非静态文件放在另一个子文件夹中。试着把他们分开。
https://stackoverflow.com/questions/58993519
复制相似问题