我正在尝试将自定义域与应用引擎一起使用。使用 localhost 和 appspot url 一切正常.但是用 custom domain端点 api 不起作用; API 发现请求 ( https://cc.mdsarowar.me/_ah/api/discovery/v1/apis/conference/v1/rest ) 返回 Not Found
,错误代码为 404
。
这是我的 app.yaml ( full code ):
- url: /_ah/spi/.*
script: conference.api
secure: optional
和端点 api ( full code ):
@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"""
........
提前致谢。
最佳答案
根据 docs :
Note: Google Cloud Endpoints does not support custom domains.
编辑
有一个open feature request为此,您可能想要为其加注星标。
关于google-app-engine - App Engine 端点 API - 带有自定义域的 404,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34612705/