Hey, I'm running a website 'gitbook.com' on Vercel. It allows my customers to create…
- User
Hey, I'm running a website 'gitbook.com' on Vercel. It allows my customers to create their own documentation websites. Those websites are created as a subdomain on my website: for example, my customer Dan can add his subdomain 'dans-gitbook.gitbook.com'. Does this all make sense so far and any clarifying questions?
Assistant
Sure, that all makes sense to me! I think the only question I have is about what the URL looks like for one of Dan's sites. I assume it would look something like 'dans-gitbook.gitbook.com', is that correct?
- User
Good question - Vercel will automatically generate a URL which will be something like 'dans-gitbook.vercel.app', but Vercel allows customers to assign custom domains to their Vercel deployments. In this case, I've assigned a custom domain of 'gitbook.com', as well as a wildcard subdomain of '*.gitbook.com'. This allows for custom subdomains. Does that make sense?
Assistant
Yeah, that makes sense! I can tell that you've put a lot of thought into this and have set up your system in a very smart way. One last thing - I notice that you've set up your custom domain to use SSL. This is a great security precaution, and I just want to make sure that your customers are aware that their sites will be served over HTTPS.
- User
To add some more context to that, Vercel automatically configures SSL for its customers. When you deploy to Vercel, it will automatically provision SSL with Let's Encrypt for them.
With that in mind, let's imagine that you're my Gitbook customer Dan. You want to have a better domain for your documentation site: instead of
dans-gitbook.gitbook.com, you want them to be accessible underdocs.danfletcher.com. You own the domaindanfletcher.comand can change its DNS records. How should I go about enabling Dan to achieve this? Assistant
Sure, here's how you can enable your Gitbook customer, Dan, to use the domain "docs.danfletcher.com" for their documentation site:
- First, Dan needs to create a CNAME record in the DNS settings for his domain, "danfletcher.com". The CNAME record should point the "docs" subdomain to "gitbook.com". For example:
docs.danfletcher.com -> gitbook.com
-
Then, Dan needs to log in to his Gitbook account and navigate to the "Settings" page for his documentation site.
-
In the "Settings" page, Dan should select the "Custom Domain" tab and click on the "Add Custom Domain" button.
-
In the "Add Custom Domain" dialog, Dan should enter the domain name "docs.danfletcher.com" and click on the "Save" button.
-
Gitbook will then automatically verify the ownership of the domain by creating a DNS record for it. Dan needs to wait for the verification process to complete before he can use the custom domain for his documentation site.
-
Once the verification process is complete, Dan can access his documentation site using the custom domain "docs.danfletcher.com".
Note that it may take some time for the changes to propagate through the DNS system, so Dan may need to wait a few hours for the new domain to become fully functional.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.