Files
mintlify[bot] 4b465465dd translate: mirror boost: 3 frontmatter to es/fr/zh translations (#5671)
Generated-By: mintlify-agent

Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
2026-05-05 17:33:20 +00:00

25 lines
1.5 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "概览"
description: "使用 Cloudflare Workers、Vercel 重写或 nginx 反向代理将你的 Mintlify 文档托管在主域名的 /docs 子路径下。"
keywords: ["子路径路由", "/docs 设置"]
boost: 3
---
将你的文档托管在类似 `your-domain.com/docs` 这样的子路径下,这样既能将文档保留在主 domain 上,方便用户查找,又能为用户提供一致的品牌体验。
<div id="set-up-by-hosting-provider">
## 按托管服务商进行设置
</div>
配置 `/docs` 子路径的方式会因托管服务商不同而有所差异。请选择你的托管服务商并按照对应的设置说明进行操作。
* [Cloudflare](/zh/deploy/cloudflare):为你的域名配置 Cloudflare Workers,使文档通过 `/docs` 子路径提供服务。
* [AWS Route 53 and CloudFront](/zh/deploy/route53-cloudfront):使用 AWS 的 Route 53 DNS 和 CloudFront CDN,将你的文档部署在 `/docs` 子路径。
* [Vercel](/zh/deploy/vercel) - 使用重写规则将你的文档部署在 `/docs` 子路径。
* [Custom reverse proxy](/zh/deploy/reverse-proxy) - 对于其他托管平台,设置反向代理,将你的文档部署在 `/docs` 子路径。
<div id="additional-configuration-for-strict-security-policies">
### 针对严格安全策略的额外配置
</div>
如果你在自定义 domain 上对所有流量进行代理,你可能需要配置代理或防火墙规则,以添加正确的 [headers](/zh/deploy/csp-configuration),从而确保文档能够正确显示。