# Add Custom Domain and SSL Certificate

In ServBay, you can easily add a custom domain to your website. If you are using ServBay Local CA, you can also conveniently generate an SSL certificate to provide secure HTTPS access. Here are the simple steps to add a custom domain and SSL certificate:

# Add a Custom Domain When Adding a New Website

  1. Open the ServBay.

  2. Click on "Hosts" in the left navigation bar.

  3. On the website list page, click the "+" button to enter the add host page.

  4. In the add host page, find the "Domain" option.

  5. In the "Domain" input box, enter the custom domain you want to add, such as servbay.test or servbay.local.

  6. Click the "Add" button to complete the addition.

Now, your newly added website can be accessed via the custom domain.

# Add a Custom Domain When Modifying an Existing Website

  1. Open the ServBay.

  2. Click on "Hosts" in the left navigation bar.

  3. On the website list page, find the website to which you want to add a custom domain, click on the website name to enter the details page.

  4. On the website details page, find the "Domain" option.

  5. In the "Domain" input box, enter the custom domain you want to add.

  6. Click the "Save" button.

Now, your website can be accessed via the newly added custom domain.

# Generate an SSL Certificate for the Custom Domain

If you want to enable HTTPS for your website with a custom domain, you can use ServBay Local CA to generate an SSL certificate. Follow these steps:

  1. Open the ServBay.

  2. Click on "Hosts" in the left navigation bar.

  3. On the website list page, find the website for which you want to generate an SSL certificate, click on the website name to enter the details page.

  4. On the website details page, find the "Web Protocol" option.

  5. In the "Web Protocol" section, choose "HTTP & HTTPS" or "HTTPS," and the system will automatically generate a SSL certificate.

  6. After confirming, click "Save."

Now, your website will have the ability to be accessed via HTTPS. You can access your website securely by visiting https://your-domain.custom.

With these steps, you can easily add a custom domain to your website in ServBay and generate SSL certificate when needed, providing a more secure way to access your website.

Last Updated: 11/25/2023