Google Apps Engine app.yaml文件不正确? “此网页有重定向循环”

时间:2021-10-01 23:07:13

I'm getting an error "This webpage has a redirect loop" when loading my Google Apps Engine url: http://my-application-id.appspot.com (my real application ID in the url of course)

我在加载我的Google Apps Engine网址时收到错误“此网页有重定向循环”:http://my-application-id.appspot.com(当然我的网址是真实的应用ID)

Google Apps Engine requires an app.yaml file in the root of the application directory to work correctly. Here are the contents of my file....

Google Apps Engine需要应用程序目录根目录中的app.yaml文件才能正常运行。这是我的文件的内容....

application: my-application-id
version: 1
runtime: php
api_version: 1

handlers:
- url: /.*
  script: install.php

Is my app.yaml file setup correctly? The install.php file for my application works much the same way as a wordpress install.php file. You access it from a web browser and go through the basic setup. If my app.yaml file is correct, why am I still getting the "This webpage has a redirect loop" error displayed in my browser?

我的app.yaml文件设置正确吗?我的应用程序的install.php文件与wordpress install.php文件的工作方式大致相同。您可以从Web浏览器访问它并完成基本设置。如果我的app.yaml文件是正确的,为什么我仍然在浏览器中显示“此网页有重定向循环”错误?

Also tried other browsers, clearing cookies, etc. The application installation screen loads perfectly in my SDK but not live on Google Apps Engine. What am I doing wrong?

还尝试了其他浏览器,清除cookie等。应用程序安装屏幕在我的SDK中完美加载但不在Google Apps Engine上运行。我究竟做错了什么?

1 个解决方案

#1


0  

I figured it out. There were 2 problems.

我想到了。有2个问题。

On app.yaml, in my case, the last line needed to say "index.php" instead of "install.php" Second, in my case, my configuration.ini file had port "80" set for MYSQL when in fact it needed to be "3306"

在app.yaml上,在我的情况下,最后一行需要说“index.php”而不是“install.php”其次,在我的情况下,我的configuration.ini文件为MYSQL设置了端口“80”,实际上它需要是“3306”

#1


0  

I figured it out. There were 2 problems.

我想到了。有2个问题。

On app.yaml, in my case, the last line needed to say "index.php" instead of "install.php" Second, in my case, my configuration.ini file had port "80" set for MYSQL when in fact it needed to be "3306"

在app.yaml上,在我的情况下,最后一行需要说“index.php”而不是“install.php”其次,在我的情况下,我的configuration.ini文件为MYSQL设置了端口“80”,实际上它需要是“3306”