How to Set Up Fastly CDN for Signal Sciences (Next-gen WAF)
: Add Domain

Worapon Asavanik
3 min readMar 24, 2024

--

This Article Describes:

1.Edit hosts file

2.Add domain

1.Edit hosts file

Ping using a DNS name or IP address; as a result, you’ll see a reply with an IP address response. Now, we are going to edit the hosts file to redirect our own PC to the target IP that we want to set for production.(for more details go to this article Edit the Hosts File)

In the picture, the IP address response is xxx.xxx.xxx.151

To add a line in the hosts file, use the server name, DNS name and IP address.

***(the IP address to use is from Fastly CDN)

After that, ping www.your-domain.com, the same one you used in the first step. You will see that the new IP address, which we edited in the hosts file, is now pingable instead of xxx.xxx.xxx.151. This means the IP address xxx.xxx.xxx.91 has replaced the previous one.

2.Add domain

you have to do main 3 step

First is to Add a domain. This is how users will find your application and content.

Second is to Add a host. This is the cloud service or web server that contains your content that Fastly can cache.

Third is to Activate your service. You can test safely, without impacting your traffic, until you update your DNS records.

Click on ‘Create a Delivery Service’.

After that, proceed to add the domain name, for example, www.your-domain.com, and click ‘Add’.

Next, proceed to add the original IP (in this case, xxx.xxx.xxx.232) in the ‘Origins’ section.

Then, make sure to correct the port because not all ports are port 80(http); instead using port 443(https).

Next, select port 443 and enter the certificate as ‘*.example.com’.

Then, look at the top right corner select Activate to finish the process.

Finally, you will obtain the CDN you’ve created.

Before I say goodbye, every clap will be a great motivation for me ^-^.
bye bye

--

--

Worapon Asavanik

Backend-Engineer(Golang, Python) & DevOps : My articles is about the list of articles I have written while working. contact: woraponasvn36@gmail.com