Does Google App Engine recognize and use a .htacce

2020-03-30 04:28发布

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?

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

Dr Edit code example

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.

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.

1条回答
聊天终结者
2楼-- · 2020-03-30 04:50

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.

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

https://developers.google.com/appengine/docs/php/config/appconfig

查看更多
登录 后发表回答