Link your Gandi domain to your Clever Cloud app

In today's article I show you how to simply link the domain name you bought on Gandi to your Clever Cloud application.

This means you already have your domain(s) on Gandi and your application running on Clever Cloud.

In this example I show a simple setup for the www. prefix. It works in all basic use cases. It works the same for other prefixes you would like to use as api. or so, just don't redirect naked domain (Gandi setup Part2) to api. unless you have reasons to do so.

Clever Cloud setup:

From your Clever Cloud console select in the left menu panel the right organization and application.

Under the Domain names panel of your application, in the Custom domain names section, add all the domain names you bought for your app prefixed with www. (Fig 1) .

domain name configuration example on clever cloud
Fig 1

You can link one or many domain names by simply adding each here.

That's it with the Clever Cloud configuration, just notice under the Configure your DNS section where you should make your CNAME records:
domain.par.clever-cloud.com. for an app hosted in Paris or domain.mtl.clever-cloud.com. for Montreal.

Gandi setup:

Connect to your gandi account.

From the left bar menu select DOMAIN.

On the domain name list, the domain names are displayed without being prefixed by www.. Select the first domain name you added to Clever Cloud.

domain name configuration example on clever cloud
Fig 2

Part 1

On the top menu (Fig 2) select DNS Records and click on the Add button on the top right.

You will be asked to select a type, pick CNAME

New form fields will appear.

Select the TTL you want. Add www to Name field. Fill Hostname field with domain.par.clever-cloud.com. or domain.mtl.clever-cloud.com. depending on where your application is.

Validate by clicking the Create button.

Part 2

On the top menu (Fig 2) select Web forwarding and click on the Create button on the top right.

Under the Address section of this form, leave the text field blank. If you have ssl certificates select http, https or both in the left drop down menu.

Under Address to forward to select http or https and add your domain name prefixed with www. e.g. www.my-amewome-website.io

Leave Permanent selected under Type of web forwarding unless you have a good reason to do otherwise.

Click on Create to finish the setup.

Your new DNS configuration will be propagated between a few hours to maximum 72 hours.

Blog

À lire également

Create your own MCP client/server: as easy as 1-2-3 with Otoroshi

While Otoroshi with LLM already allows you to simplify the management of your various AI providers, access to models and integration with your teams, we have added simplified management of MCP clients and servers.
Company

Clever Cloud obtains HDS (Health Data Hosting) certification

Clever Cloud achieves HDS Certification, enabling it to host health data in France. Clever Cloud, Europe's leading provider of Platform as a Service cloud solutions, today announced that it has been awarded the Hébergeur de Données de Santé (HDS) certification, in its updated version effective May 16, 2024, for all 6 activities in the standard. This certification reinforces Clever Cloud's position as a trusted partner for companies and organizations in the healthcare sector.
Press

Clever Tools: a year of enhancements for your deployments, on the road to v4

A command line interface (CLI) is at the core of developer experience. At Clever Cloud, we have been providing Clever Tools for almost 10 years.
Engineering Features