mintlify.dev subdomain. Mintlify supports both root domains (docs.yoursite.com) and subpaths (yoursite.com/docs).
Domain vs subpath hosting
Custom domain hosting serves your documentation at a dedicated subdomain:docs.yoursite.comhelp.yoursite.comdevelopers.yoursite.com
yoursite.com/docsyoursite.com/helpyoursite.com/resources
Set up a custom domain
Add your domain in the dashboard
- Navigate to Custom domain setup in your dashboard.
- Enter your desired domain (e.g.,
docs.yoursite.com). - Click Add domain.
Configure DNS records
Add a CNAME record with your DNS provider:
- Type: CNAME
- Name: Your subdomain (e.g.,
docs) - Value:
cname.mintlify.dev - TTL: 3600 (or your provider’s default)
Wait for DNS propagation
DNS changes typically propagate within a few minutes but can take up to 48 hours depending on your DNS provider and TTL settings.
SSL certificates
Mintlify automatically provisions and renews SSL certificates for custom domains using Let’s Encrypt. This process typically completes within a few minutes after DNS propagation. If your certificate fails to provision:- Verify your DNS records are configured correctly
- Ensure no conflicting DNS records exist
- Check that your domain is not behind a proxy that blocks Let’s Encrypt verification
- Wait for DNS changes to fully propagate (up to 48 hours)
Subpath hosting with reverse proxy
Reverse proxy configurations are only supported for Enterprise plans.
yoursite.com/docs, configure a reverse proxy to route traffic between your main site and Mintlify.
Mintlify supports two approaches:
Host at /docs subpath (recommended)
Use this configuration for the simplest setup when hosting at the /docs path:
- Navigate to Custom domain setup.
- Enable the Host at
/docstoggle. - Enter your domain and click Add domain.
- Configure your reverse proxy to route traffic from
yoursite.com/docsto<your-subdomain>.mintlify.dev.
Custom subpath
For subpaths other than/docs (such as /help or /resources), proxy traffic to <your-subdomain>.mintlify.app instead.
See Reverse proxy for complete configuration details including:
- Required routing rules
- Header forwarding requirements
- Example nginx configurations
- Troubleshooting common issues
Subpath hosting with CDN
Configure your CDN or edge platform to route documentation requests to Mintlify while serving your main site from a different origin.Cloudflare Workers
Use Cloudflare Workers to proxy documentation requests:- Create a Cloudflare Worker in your dashboard
- Configure the Worker to route
/docs/*paths to your Mintlify subdomain - Deploy the Worker to your custom domain
- Worker script examples
- Vercel domain verification path configuration
- Custom domain routing
- Webflow integration
AWS CloudFront and Route 53
Use AWS CloudFront as a CDN with Route 53 for DNS management:- Create a CloudFront distribution with your Mintlify subdomain as the origin
- Configure behavior rules to route documentation paths
- Set up caching policies for optimal performance
- Point your Route 53 domain to the CloudFront distribution
- CloudFront distribution setup
- Behavior path patterns
- Cache policy configuration
- Route 53 DNS record creation
Domain verification for subpaths
When using a reverse proxy or CDN to host documentation at a subpath, ensure your configuration allows traffic to these verification paths:/.well-known/acme-challenge/*- Required for Let’s Encrypt SSL certificate verification/.well-known/vercel/*- Required for Vercel domain verification
- Allow traffic to
/.well-known/*paths without modification - Forward the
Hostheader correctly - Not cache verification requests
Troubleshooting custom domains
Domain not connecting
Symptoms: Your custom domain shows an error or doesn’t load. Solutions:- Verify your CNAME record points to
cname.mintlify.dev - Check that no conflicting A or AAAA records exist
- Confirm DNS changes have propagated using a DNS lookup tool
- Wait up to 48 hours for DNS propagation
SSL certificate not provisioning
Symptoms: Browser shows security warnings or “certificate invalid” errors. Solutions:- Verify DNS records are configured correctly and have propagated
- Ensure
/.well-known/acme-challenge/*paths are accessible - Check that your domain is not behind a proxy blocking verification
- Remove any existing SSL certificates for the domain
- Contact support if the issue persists after 48 hours
Subpath not working
Symptoms: Main site loads but documentation subpath returns 404 errors. Solutions:- Verify your reverse proxy or CDN configuration is routing correctly
- Check that the Host at
/docstoggle matches your proxy target - Ensure header forwarding is configured properly
- Test your Worker or CloudFront behavior rules
- Review proxy logs for routing errors
Changes not appearing
Symptoms: You publish updates but changes don’t appear on your custom domain. Solutions:- Clear your CDN cache if using CloudFront or Cloudflare
- Verify your proxy points to the correct Mintlify subdomain
- Check that cache headers are configured correctly
- If using Host at
/docs, ensure you’re proxying tomintlify.devnotmintlify.app - Trigger a manual deployment from your dashboard
Migration from subdomain to subpath
When migrating from a custom subdomain to a subpath hosting configuration:- Set up your reverse proxy or CDN configuration first
- Test the subpath thoroughly before changing DNS
- Keep your CNAME record active during testing
- Update internal links to use the new subpath structure
- Set up redirects from the old subdomain to the new subpath
- Remove the CNAME record only after verifying the subpath works correctly