Set your base path
Set your base path on the Custom domain setup page in your dashboard, then configure your reverse proxy to route that path to Mintlify. The default base path is/docs, but you can use any base path you choose, like /help or /resources.
In all configurations, use mintlify.site as the proxy target.
Host at /docs subpath
Use this configuration when you want to serve documentation at the /docs path on your domain.
Before configuring your reverse proxy:
- Navigate to Custom domain setup in your dashboard.
- Enable the Host at toggle.
- Enter your domain.
- Enter
docsas your base path. - Click Add domain.
Routing configuration
Proxy these paths to your Mintlify subdomain:
Your proxy must forward all HTTP methods on documentation paths. Mintlify sends analytics events as
POST requests to /docs/_mintlify/api/v1/e, so a proxy that only allows GET and HEAD requests silently breaks the analytics in your dashboard.
Mintlify serves these files under your base path, like <your-subdomain>.mintlify.site/docs/llms.txt, so they are available on your domain under your subpath, like your-domain.com/docs/llms.txt, through your main subpath route.
The /.well-known/skills/*, /.well-known/agent-skills/*, /skill.md, /llms.txt, and /llms-full.txt routes are optional. Include them only if you also want to serve these files at root paths on your domain, like your-domain.com/llms.txt. Note that each root path maps to the file under your base path on your Mintlify subdomain.
Required header configuration
Configure your reverse proxy with these header requirements:- Origin: Contains the target subdomain
<your-subdomain>.mintlify.site - X-Forwarded-For: Preserves client IP information
- X-Forwarded-Proto: Preserves original protocol (HTTP/HTTPS)
- X-Real-IP: Forwards the real client IP address
- User-Agent: Forwards the user agent
Example nginx configuration
Custom subpath
To use a subpath other than/docs (such as /help or /resources):
- Navigate to the Custom domain setup page in your dashboard.
- Enable the Host at toggle.
- Enter your domain.
- Enter your base path. For example,
/docsor/help. - Click Add domain.
<your-subdomain>.mintlify.site<your-base-path> serves your content.
Configure your reverse proxy using the same routing configuration, header requirements, and nginx patterns as the /docs subpath, replacing /docs with your base path.
Troubleshooting
Changes not appearing
Symptoms: You publish documentation updates, but the changes don’t appear on your site. Cause: Your reverse proxy points to an outdated hostname. Solution: Update your reverse proxy configuration to point to<your-subdomain>.mintlify.site.
404 error
Symptoms: Documentation loads, but features don’t work. API calls fail. Cause: The reverse proxy forwards theHost header or the Origin header is missing.
Solution:
- Remove
Hostheader forwarding - Set the
Originheader to your Mintlify subdomain (<your-subdomain>.mintlify.site)
Performance issues
Symptoms: Slow page loads and layout shifts. Cause: Incorrect caching configuration. Solution: Disable caching for documentation paths. If you proxy/mintlify-assets/_next/static/* paths, enable caching only for those static assets.