I wanted to write this guide for long time already and now it´s the time 
From what I read here and from what I know when I was doing pop coaching the techinical aspect is a huge issue for many people.
You want to run campaigns and promote offers so why should you mess around with server stuff as well...
Today I will show you an easy and affordable way to setup a good infrastructure to use.
In this tutorial we cover:
- The server
- CDN
- DNS
- Domains and SSL certificates
This tutorial is more for beginners and exactly the way I describe it will work for up to 500k clicks per day, that has to do with the server configuration we use for it but 500k clicks per day should be enough in the beginning and keep you busy for some time 
Although this is a tutorial for beginners I won´t show how to sign up for accounts at the services we use, you should be able to figure it out yourself or it´s already covered here anyway 
Let´s start with the server.
When you use a self hosted tracker you can use the same server where your tracker is installed for your landing pages as well, when you use a cloud tracker you need the server only for landing pages.
Login or sign up to Digital Ocean and create a droplet.
For the distribution click on Marketplace, search for "lemp" and then select LEMP on Ubuntu 20.04.

LEMP just means that the server will have Nginx, MySQL and PHP already installed when it´s ready to use and that way the whole installation takes only few minutes.
For us most important is the Nginx webserver.
Choose this plan:

For datacenter you can just choose London or Frankfurt.
For authentication you can keep password, that´s how I do it myself as well.

When the droplet is created the server is ready to use, let´s continue with the next step:
CDN and DNS
Amy already did a great job with her tutorial for hosting and CDN but let me show you how I do it 
Instead of using Amazons infrastructure we use Cloudflare
To use a CDN and DNS of course you need a domain so first get a domain from Namecheap that you want to use for your landing pages.
You can use Cloudflares DNS for your tracking domains as well, the steps are always the same but tracking domains can mostly/always be added to your server from within the tracker itself.
To add landing page domains to a server can be a bit more complicated, that´s why I show you how to do it easy-peasy as well.
Ok, when you got your domain from Namecheap go back to Cloudflare and add the domain there.

Enter the domain name and click "Add site".
In the next step choose the free plan.
Yup, that´s correct.
It´s free, no costs, nada, nothing , nichts, niente, ничего.

In the DNS settings you can delete all the records, in the end you only need an A record to connect the domain name to your server IP.
When all other records are deleted click "Add record", select Type "A", in the field for Name you put your domain, in IPv4 address you put your server IP.
Keep proxy status checked, this is the setting for the CDN.
Attention: That´s only for landing domains, for tracking domains uncheck proxy status so that you only use Cloudflares DNS but not CDN.

If you also want to use your domain with www.yourdomain.com just add a "CNAME" record as well where you put www in the Name filed and your domain name in Content.

Don´t forget to save and when you´re done with the settings click on "Continue".
If you want to use Cloudflares DNS for a tracking domain you can add the domain exactly as before but then uncheck the proxy status.

Now you need to connect Cloudflare with Namecheap, to do so you need to add Nameservers from Cloudflare to the domain on Namecheap.
You find the Nameservers in the DNS tab right below your settings.

Copy the 2 Nameservers from there and add them on Namecheap to your domain.
Go to Namecheap and click on "Manage" for your domain.

For Nameservers choose "Custom DNS" and add the 2 Nameservers from Cloudflare there.

Ok, now your domain is added to Cloudflare so that it can use Cloudflares CDN and DNS.
It´s also connected to Namecheap.
Now we need to add the domain to the server.
To add the domain to the server the DNS propagation needs to be done first.
You can use THIS SITE to check the status.
Enter your domain there and click "Search", when you see your server IP in the results you can move on to the next step.
To add the domain to the server we just use Binoms auto install script, that way you only need 1-2 little commands and that´s all.
The script works even when you don´t use
This is also the reason why you need to choose a specific Ubuntu version and LEMP with Nginx as web server, otherwise the script won´t work.
First connect to your server as root user either through terminal or PuTTY.
The command through terminal is
ssh root@your.server.ip

wget http://data.binom.org/binom_install.sh -O /root/binom_install.sh
bash /root/binom_install.sh lpdomain

bash /root/binom_install.sh ssl

service nginx restart
Fab! Tech is my weakest area. In the 40-day tutorial I show a setup that works, but I have heard that cloudflare may be superior. Will link from that lesson to yours.
Amy
Sent from my iPhone using STM Forums
What do I do if the DNS never propagates?
I have tried this setup twice now with different droplets/domains and the IP never changes in the DNS checker. I am 99% everything is setup correctly.
I tried running the
Can you post a screenshot of your CloudFlare DNS setting? You can blur out parts of your domain and IP.
Just guessing... did you put @ symbol where it says "root" when creating the A record in CloudFlare?
The



I must be missing something obvious
Well the following link shows that propagation did work for most geos. Probably for the remaining geos it will take a bit longer.
--> See for yourself:
https://www.whatsmydns.net/#A/healthbodynews.net
It's done. DNS propagation have been done properly, congrats! The IPs you see on DNS checker are CloudFlare DNS server IPs, which is normal.
You can keep going on the tuto from "To add the domain to the server we just use Binoms auto install script, that way you only need 1-2 little commands and that´s all." Everything before that looks good.
Oh I was expecting the digitalocean server IP to show up for some reason, just shows what a noob I am when it comes to hosting! Then everything was working correctly all the time
Thanks for the help!
@twinaxe Just to confirm we will have two droplets on our digital ocean server one for tracking with