Custom domains?

Is it possible to link my domain to my glitch project using Fastly, if the domain I have is an apex one?

Would it be possible to have it set up to use both the www and without the www with it redirecting both version of the domain to the same location site?

I’m still quite new with the domain side of websites but would love to hook mine up to the one I’ve been working on in a glitch project, any help is appreciated!

Hey @NoahsArkOfficial, yes this is possible! A straightforward way to do this is by setting the Override Host in your Fastly service to your glitch project URL. Specifying an override host

When this is set, it forces all connections to your glitch origin to use the defined Override Host host header – so the apex, www, and any other domain+subdomain combination you put on your Fastly service will all connect with the Override Host value.

1 Like

Hi @NoahsArkOfficial in case you haven’t already seen it we have this guide to using your own domain for your Glitch site:

However as you may have noticed it only walks you through using a subdomain like www – to use your apex domain you’ll also need to set A records in your DNS settings as per this guide:

You’ll grab the Fastly IP address values from your TLS certificate and add them as A records in your DNS wherever your domain is registered – and add the CNAME record for www as in the first tutorial.

You’ll need the apex and www versions added to both your Fastly service and TLS certificate.

Otherwise the steps in the tutorial should be the same, let us know if you get stuck!

1 Like

I managed to figure it out from what you both have suggested, thank you, both!

1 Like