yaml配置,用于向Google App Engine添加一个脚本文件 [英] yaml configuration for add one more script file to google app engine
问题描述
我正在使用googel应用程序引擎制作一个php应用程序.在那,我想提供一个链接到另一个目录中的另一个php文件.但是我不知道这样做的yaml配置.我正在使用的yaml文件是这样的:
I am making a php app using googel app engine. In that, i want to provide a link to another php file in a different directory. but i dont know the yaml configuration for doing so. the yaml file i am using is like this:
application: tryappbhargav
version: 1
runtime: php
api_version: 1
handlers:
- url: /
script: index.php
- url: /.*
script: index.php
- url: /signin/
script: index.php
- url: /signin/index.*
script: index.php
我无法转到目录登录"内的文件"index.php".请帮忙!!谢谢:-)
i am not able to go to the file 'index.php' inside the directory 'signin'. Please help!! Thank you :-)
推荐答案
这行是您的问题.
- url: /.*
script: index.php
它将匹配所有以'/'开头的内容,因此没有任何内容可以通过此匹配.阅读文档后,您需要在更通用的网址格式之前放置更具体的匹配项.
It will match everything starting with a '/', so nothing gets past this match. Have a read of the docs, you need to place more specific matches before more general url patterns.
这篇关于yaml配置,用于向Google App Engine添加一个脚本文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!