Host documentation at a /docs subdirectory using AWS services
/docs
subpath using AWS Route 53 and Cloudfront, you need to configure your DNS provider to point to your Cloudfront distribution.
/.well-known/acme-challenge/*
- Required for Let’s Encrypt certificate verification/.well-known/vercel/*
- Required for Vercel domain verificationHOST
header and client IP information correctly. This is critical for Vercel’s verification processes.
When using CloudFront with Vercel deployments, CloudFront automatically adds the CloudFront-Viewer-Address
header containing the original client’s IP address.
Make sure your CloudFront distribution is configured to forward this header to your origin by including it in your origin request policy or cache policy headers configuration.
Create distribution
[SUBDOMAIN].mintlify.dev
where [SUBDOMAIN]
is the project’s unique subdomain. Click on Use: [SUBDOMAIN].mintlify.dev
Caching Optimized
.
Create distribution
.
Origins
tab.
.webflow.io
.If you use Vercel, you use the .vercel.app
domain available for every project.[SUBDOMAIN].mintlify.app
and another with with staging URL.
[SUBDOMAIN].mintlify.dev
/.well-known/*
/.well-known/*
and Origin and origin groups pointing to your main origin (the staging URL).
For Cache policy, select CachingDisabled
to ensure these verification requests pass through without caching.
/docs/*
/docs/*
with Origin and origin groups pointing to the .mintlify.dev
URL (in our case acme.mintlify.dev
)
CachingOptimized
and create behavior.
/docs
/docs
and Origin and origin groups pointing to the same .mintlify.dev
URL.
Default (*)
Default (*)
behavior.
mintlify-landing-page.vercel.app
).
Save changes
.
General
tab and visiting the Distribution domain name URL.
/docs
to the URL, you should see it going to the Mintlify documentation instance.
Hosted zone
for your primary domain. Click on Create record
Alias
and then Route traffic to the Alias to CloudFront distribution
option.
Create records
.
/docs
for your primary domain.