【发布时间】:2020-02-04 12:11:09
【问题描述】:
我想使用上下文路径路由来访问我尝试部署的应用程序。我希望用户只能使用以下 URL 访问该应用程序。
https://my-app.domain.int/foo
下面是Staticfile.txt文件内容。
pushstate: enabled
下面是mainfest.yml文件内容
---
applications:
- name: my-app
memory: 1G
instances: 1
path: .
routes:
- route: my-app.domain.int/foo
buildpack: staticfile_buildpack
下面是目录结构。
dist
- index.html
- Staticfile.txt
- mainfest.yml
我尝试了以下解决方案,但没有帮助。
当我访问 URL 时,我得到 404 Not Found 页面。我想知道我是否遗漏了什么。我怎样才能让上下文路径起作用。
[注意:我使用的是 Azure Pivotal PCF 服务和 nginx 服务器]
【问题讨论】:
标签: nginx cloud-foundry contextpath