Custom domain

Issues information
i added my custom domain but i get an “default backend - 404” error on google search

  • OS:
  • databases:
  • Programming language and version:
  • Link to your project on Github/Gitlab:

Your issue
i purchased my domain from godady and here is my cname record

Describe here your issue

qovery.yml file content (if any)

---
application:
  name: "etestzone"
  project: "etestzone"
  organization: "QoveryCommunity"
  publicly_accessible: true
  port: 3000
routers:
- name: "main-etestzone"
  custom_domains:
  - branch: "main"
    domain: "etestzone.in"
  routes:
  - application_name: "etestzone"
    paths:
    - "/*"

specify here your dockerfile content

Hello,
I can see you add a “www” CNAME. If you want to make it works, you have to set domain at “www.etestzone.in” in qovery.yaml.

i changed my qovery.yml file…

---
application:
  name: "etestzone"
  project: "etestzone"
  organization: "QoveryCommunity"
  publicly_accessible: true
  port: 3000
routers:
- name: "main-etestzone"
  custom_domains:
  - branch: "main"
    domain: "www.etestzone.in"
  routes:
  - application_name: "etestzone"
    paths:
    - "/*"

but whenever I searched my site on google I got an error " Your connection is not private

Attackers might be trying to steal your information from **www.etestzone.in** (for example, passwords, messages, or credit cards). Learn more

NET::ERR_CERT_AUTHORITY_INVALID"

please help me to resolve this

Hi,

I think you’re having a browser cache issue as it works well on my side :slight_smile:

but still i have to type www.etestzone.in is there is any way i can make it just by typing etestzone.in or etestzone and i find my web application on google

You can’t set a CNAME on a root domain. Several options exists but it depends on your DNS registrar.

You can take a look at this article to know more about it and possible solutions: Why a domain’s root can’t be a CNAME — and other tidbits about the DNS

Once you’ll have your solution, you can add a new router with your root domain like:

routers:
- name: "main-etestzone"
  custom_domains:
  - branch: "main"
    domain: "www.etestzone.in"
  routes:
  - application_name: "etestzone"
    paths:
    - "/*"
- name: "main-etestzone-root"
  custom_domains:
  - branch: "main"
    domain: "etestzone.in"
  routes:
  - application_name: "etestzone"
    paths:
    - "/*"