yaml配置,用于向Google App Engine添加一个脚本文件 [英] yaml configuration for add one more script file to google app engine

查看:49
本文介绍了yaml配置,用于向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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆