Aller au contenu

Custom Domain Setup

Ce contenu n’est pas encore disponible dans votre langue.

Setting up a custom domain for your Dockit documentation site helps establish your brand identity and provides a professional appearance. This guide covers the complete process of configuring custom domains across different hosting platforms.

A custom domain allows you to serve your documentation from your own branded URL instead of the default hosting provider subdomain. For example:

  • Default: your-docs.netlify.app or your-docs.vercel.app

  • Custom: docs.yourcompany.com or help.yourcompany.com

Before setting up a custom domain, ensure you have:

  1. Domain ownership: You own or control the domain you want to use

  2. DNS access: Ability to modify DNS records for your domain

  3. Deployed site: Your Dockit site is already deployed and working

  4. SSL certificate: HTTPS support (usually provided automatically)

Using a subdomain is the most common and recommended approach:

You can also use your root domain, though this requires additional considerations:

Serve documentation from a specific path:

  1. Go to your site’s Site Settings in Netlify dashboard

  2. Navigate to Domain managementCustom domains

  3. Click Add custom domain

  4. Enter your domain (e.g., docs.yourcompany.com)

Add a CNAME record in your DNS provider:

Netlify automatically provisions SSL certificates through Let’s Encrypt:

  1. Wait for DNS propagation (up to 24 hours)

  2. SSL certificate will be automatically issued

  3. Force HTTPS redirect in Site SettingsHTTPS

Create a \_redirects file in your public/ directory:

  1. Go to your project dashboard

  2. Navigate to SettingsDomains

  3. Enter your custom domain

  4. Choose the deployment branch

For subdomains, add a CNAME record:

For root domains, add A records:

Vercel will automatically verify your domain and issue SSL certificates.

  1. Go to repository SettingsPages

  2. Select source (usually main branch)

  3. Add custom domain in the Custom domain field

Create a CNAME file in your repository root or public/ directory:

Add a CNAME record pointing to GitHub Pages:

GitHub Pages automatically provides SSL certificates for custom domains.

Add domain in Firebase Console:

  1. Go to Hosting section

  2. Click Add custom domain

  3. Follow the verification steps

Add the provided DNS records from Firebase Console.

Additional Cloudflare settings:

  • SSL/TLS: Full (strict)

  • Always Use HTTPS: On

  • Automatic HTTPS Rewrites: On

Most modern hosting platforms provide automatic SSL:

  • Netlify: Let’s Encrypt (automatic)

  • Vercel: Automatic SSL provisioning

  • GitHub Pages: Automatic for custom domains

  • Firebase: Google-managed certificates

For advanced setups, you might need manual SSL configuration:

Configure multiple domains for the same site:

Set up different domains for different languages:

Configure CDN for better performance:

Enable HTTP Strict Transport Security:

  1. Use fast DNS providers: Cloudflare, Route 53, or Google DNS

  2. Minimize DNS lookups: Reduce external resource dependencies

  3. Enable DNS prefetching: \<link rel="dns-prefetch" href="//example.com"\>

Set up monitoring for your custom domain:

DNS changes can take up to 48 hours to fully propagate worldwide:

Online tools:

Common SSL problems and solutions:

  1. Mixed content errors: Ensure all resources use HTTPS

  2. Certificate mismatch: Verify domain names match certificate

  3. Expired certificates: Set up auto-renewal

Prevent infinite redirects:

Diagnose and fix performance problems:

Plan for seamless domain migration:

  1. Prepare new domain: Set up and test thoroughly

  2. Update DNS with low TTL: Reduce propagation time

  3. Monitor traffic: Watch for any issues

  4. Implement redirects: Guide users to new domain

  5. Update internal links: Change all references

  6. Notify users: Communicate the change

  • Domain ownership verified

  • DNS records configured

  • SSL certificate active

  • Redirects implemented

  • Internal links updated

  • External references notified

  • Analytics tracking updated

  • SEO considerations addressed

  • Monitoring alerts configured

  • Rollback plan prepared

  1. Choose meaningful subdomains: Use clear, descriptive names

  2. Enable HTTPS everywhere: Never serve content over HTTP

  3. Monitor domain health: Set up uptime monitoring

  4. Plan for disasters: Have backup domains ready

  5. Document your setup: Keep configuration records

  6. Regular maintenance: Review and update configurations

  7. Security first: Implement proper headers and policies

  8. Performance matters: Optimize for speed and reliability

Setting up a custom domain for your Dockit documentation site enhances your brand presence and provides a professional experience for your users. Follow the platform-specific instructions, implement proper security measures, and monitor your domain’s health for the best results.

Remember to test thoroughly in a staging environment before making changes to production domains, and always have a rollback plan ready in case of issues.

Still Reading Docs? Start Doing!

Unlock the full potential of Feedigy's power to streamline and automate your content marketing efforts!