Custom domain gives 404

Hello,

I set up a tyk cloud account (free) and have created my API(s) on the portal.

I want to setup custom domains for developer portal and API URL(s) by following steps put here : https://tyk.io/docs/tyk-cloud/using-custom-domains/

I have set up CNAME records for ingress URL(s) from control plane and Edge gateway. I have added Custom URL in API dashboard too

How do I resolve this?

@Olu Please could you guide me here?

Hi @Rahul and welcome to the community. I’ll try to break apart your questions and respond accordingly.

I set up a tyk cloud account (free) and have created my API(s) on the portal.

Do you mean the dashboard or the developer portal?

I have set up CNAME records for ingress URL(s) from control plane and Edge gateway. I have added Custom URL in API dashboard too

How do I resolve this?

Do you mean the 404? If yes, then did you confirm the default domains were working fine before adding a custom domain?

Also can you share screenshots of the gateway, dashboard or portal?

Hey @Olu

Thank you so much.

Yes, I have setup the dashboard and developer portal

the default domains are working fine, with no problems at all.

Screenshot:
CONTROL - PLANE

DEVELOPERP PORTAL:

DEMO API :
https://genuine-gap-mgw.aws-euw1.cloud-ara.tyk.io/demo/ → points to httpbin.org

I have setup two CNAME record
developer.domain.com → developer portal
api.domain.com → edge gateway ingress

Thanks for your response.

I see the management gateway is working fine. Have you specified the domain or subdomain in the custom domain field of both the gateway and dashboard?

If yes, then I see you mentioned you have added it to the API definition, in your earlier response. Can you confirm?

For the developer portal, I think you may have to send us an email at [email protected] as indicated in our FAQ.

Also, can you share the custom domain? One way to check if your custom domain is properly mapped is to append the /hello path in front of it. If you try it out with the default domains (except the developer portal), you would observe the expected Liveness health check response.

https://genuine-gap-mgw.aws-euw1.cloud-ara.tyk.io/hello

404 errors simply means something is missing. Either one of the configurations is missing above or the network changes might not have taken full effect.

Hey @Olu

I cannot find “Custom Domain Field” in my edge deployment. I am on Tyk cloud free account. I am on Edge Version 4.0.2

Hi Rahul,

This helps? Using Custom Domains

You need to select the edge gateway first.

Hey @Ubong

I did this and after that I clicked “edit” under the “deployed” drop down . However there is no custom domains field in the next screen

Any solutions?

Will check and revert in a few.

Meanwhile, does your custom domain’s /hello endpoint (api.domain.com/hello) respond with a pass?

no, it gives me a 404.

  1. CNAME records have been created and propagated, have checked it with MXtoolbox
  2. URL developer.domain.com/hello , it gives a 404

Hi Rahul,

Looks like you signed up for a free-forever account. Custom domains are not an available feature on that. Scalable Tyk Cloud pricing plans - API Management Platforms

It is available on the free trial. You’ll need to restart with one.

Hello @Ubong and @Olu

Thank you so much for all your help. I really appreciate your efforts.
I was under the impression it was possible with free account.