本文介绍了难道谷歌应用程序引擎识别和使用.htaccess文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是谷歌应用程序引擎启动到本地测试我的应用程序本地主机:8080 。我猜测,谷歌应用程序引擎启动使用Python在本地运行一台服务器,但我读过的.htaccess 是Apache的事情。这个例子code,我试图去工作,使用的.htaccess 文件。我想弄清楚它是否与的.htaccess 文件,或者其他什么东西的问题。将谷歌应用程序引擎识别并使用的.htaccess 文件?

I'm using Google App Engine Launcher to test my application locally on localhost:8080. I guess that the Google App Engine Launcher uses Python to run a server locally, but I've read that .htaccess is an Apache thing. The example code I'm trying to get to work uses a .htaccess file. I'm trying to figure out if it's a problem with the .htaccess file, or something else. Will Google App Engine recognize and use a .htaccess file?

我用我的code从Git的枢纽编辑PHP博士例如:

I'm using the Dr Edit PHP example from Git Hub as my code:

博士编辑code例如

这是在code,谷歌明确指出为使用PHP的谷歌应用程序引擎的一个更完整的例子。在轮毂的Git存储库包含的.htaccess 文件,但不包括的app.yaml 文件。在谷歌开发者文档明确指出一个的app.yaml 文件是需要配置应用程序,但随后的例子code,他们正式指向遗漏了一个的app.yaml 文件,并提供了一​​个的.htaccess 文件。我不明白。

This is the code that Google specifically points to as a more complete example of using PHP on Google App Engine. The repository on Git Hub includes a .htaccess file, but does NOT include an app.yaml file. The Google Developers documentation specifically indicates that an app.yaml file is needed to configure the application, but then the example code they officially point to leaves out an app.yaml file and provides a .htaccess file. I don't understand.

在此花费时间大量的,看到怎么过时,和完全错误的,从谷歌的文档后,我不知道,如果编辑博士的例子,可向运行现况从Git的枢纽。

After spending massive amounts of time on this, and seeing how outdated, and outright wrong the documentation from Google is, I don't know if the Dr Edit example can be made to run "As Is" from Git Hub.

推荐答案

有些code样品将是有益的。但是从我了解谷歌应用程序引擎,的.htaccess不直接支持,而是它使用app.yaml文件来完成很多东西的.htaccess提供。

Some code samples would be helpful. But from what I understand of Google App Engine, .htaccess is not directly supported and instead it uses the app.yaml file to accomplish much of what .htaccess provides.

您可能会发现下面的链接,入门有帮助 https://developers.google.com/appengine/docs/php/gettingstarted/helloworld (假设你使用PHP)

You might find the following links helpful for getting startedhttps://developers.google.com/appengine/docs/php/gettingstarted/helloworld (assuming your working with PHP)

https://developers.google.com/appengine/docs/php/配置/ AppConfig的

这篇关于难道谷歌应用程序引擎识别和使用.htaccess文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 18:29