App Engine端点API-带有自定义域的404 [英] App engine endpoints API - 404 with custom domain
问题描述
我正在尝试将自定义域与应用引擎一起使用.一切都可以在localhost和 appspot网址下正常运行.但是使用自定义域端点api无效; API发现请求( https://cc.mdsarowar. me/_ah/api/discovery/v1/apis/conference/v1/rest )返回Not Found
,错误代码为404
.
I'm trying to use custom domain with app engine. Everything works fine with localhost and appspot url. But with custom domain endpoints api doesn't work; the API discovery request (https://cc.mdsarowar.me/_ah/api/discovery/v1/apis/conference/v1/rest) returns Not Found
with error code 404
.
这是我的app.yaml(完整代码):
Here is my app.yaml (full code):
- url: /_ah/spi/.*
script: conference.api
secure: optional
和端点api(完整代码):
@endpoints.api( name='conference',
version='v1',
allowed_client_ids=[WEB_CLIENT_ID, API_EXPLORER_CLIENT_ID],
scopes=[EMAIL_SCOPE], hostname = 'cc.mdsarowar.me')
class ConferenceApi(remote.Service):
"""Conference API v0.1"""
........
谢谢.
推荐答案
按照文档:
注意:Google Cloud Endpoints不支持自定义域.
Note: Google Cloud Endpoints does not support custom domains.
修改
有一个打开功能请求,因此您可能要给它加注星标.
There is an open feature request for this so you may want to star it.
这篇关于App Engine端点API-带有自定义域的404的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!