Pular para conteúdo

How to configure a GoCache subdomain using CNAME

1. Register your domain

Login into the GoCache dashboard.

1.1 Initial domain registration

Insert your domain name in the text box and click on the "Próximo passo" (Next step) button.

add_domain

Important: You must register the domain name, not a subdomain (e.g. gocache.com.br, not www.gocache.com.br), even if you're planning on activating GoCache in a subdomain.

On "Como você prefere fazer o apontamento para a GoCache?" (How do you prefer to point (dns) to GoCache?), select "Apontar para a GoCache a partir do meu DNS atual" (Point to GoCache from my current DNS server).

dns_select

1.2 If you already have domains registered previously

Click on the "Adicionar novo Domínio" (Add new Domain) button in the domain list page.

add_domain

Insert your domain name in the text box.

Important: You must register the domain name, not a subdomain (e.g. gocache.com.br, not www.gocache.com.br), even if you're planning on activating GoCache in a subdomain.

On "Voce quer utilizar os servidores de dns da GoCache?" (Do you want to use GoCache DNS servers?), select "Não" (no) and click "Próximo passo" (Next).

dns_select

2. Register subdomains

Type in the subdomain that will be using GoCache, and click on the "Inserir" (Insert) button.

add_subdomain

After registering subdomains, click on the "Próximo passo" (Next step) button.

3. Register subdomains hosting address

For each subdomain, register their respective hosting server address.

subdomain_address

Click on the "Próximo passo" (Next step) button.

4. SSL certificate information

This page will display a message indicating the need to wait several minutes before an automatic SSL certificate is available in GoCache, due to DNS propagation.

You may upload your own custom SSL certificate after finishing the wizard configuration.

ssl_information

5. CNAME configuration information

The final wizard page will display the CNAMEs you'll need to configure in your DNS server:

cname_information

In the example above, you'd configure the following entries in your DNS server:

  • www should point to the CNAME value www.mydomain.com.cdn.gocache.net
  • blog should point to the CNAME value blog.mydomain.com.cdn.gocache.net

Click in "Finalizar" (Finish).

6. Upload a custom SSL certificate

In your domain's "Configurações" (Configuration) page, navigate to the "SSL" tab.

config_ssl

In third box, "Certificados SSL" (SSL Certificates), click on the "Adicionar" (Add) button, a modal box will open in which you'll be able to insert your SSL certificate data.

ssl_configuration

In the first text input, paste your SSL Certificate in the PEM format. In the second text input, paste your certificate key in the PEM format.

Important: encrypted certificates and encrypted keys are not supported. You must decrypt them before registering.

ssl_configuration

Click on the "Adicionar" (Add) button.