[英]Creation of large files in Google App Engine flexible using PHP
[英]URL Handlers in Google App Engine PHP Flexible enviroment
我已經在Google App Engine中將PHP項目部署為Flexible Environment,我想要的是擁有一個自定義URL,以便用戶可以按
www.example.com/user
必須指向
www.example.com/core/userProfile/user.php
我已將app.yaml
更改為此,但無法使其正常工作
runtime: php
env: flex
service: api
api_version: 1
threadsafe: true
resources:
cpu: 1
memory_gb: 1
disk_size_gb: 10
# Starting Point
runtime_config:
document_root: '.'
# Routers
handlers:
- url: /test.php
script: /test.php
- url: /index.php
script: index.php
- url: /user
script: core/userProfile/user.php
任何網址都會產生以下結果
Error: Not Found
The requested URL /user was not found on this server.
您的app.yaml
配置將標准環境Handlers元素混合到一個靈活的環境配置中 ,因此它可能會被忽略。 某種程度上相關: 如何判斷Google App Engine文檔頁面適用於標准環境還是靈活環境
您需要處理Flex應用程序內部的URL路由,請參閱App Engine靈活環境中的PHP快速入門
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.