Documentation

CloudFlare

CloudFlare is a reverse proxy that is widely used to speed up and add security to websites.

Setup CloudFlare

Go to create an account and follow the steps. You will need to do some changes to your website DNS so be aware of that. Some hosting companies have partnerships with CloudFlare so in those cases you can enable CloudFlare directly from your hosting account.

Real connecting IP

CloudFlare is a proxy, so it is required to pass the real peer IP to your webserver, otherwise the registered IPs will match CloudFlare and not the end-user. For Nginx, you must use ngx_http_realip_module. For Apache, mod_remoteip.

Kindly read the CloudFlare documentation regarding this. If you run Nginx, we recommend to check this repository: ergin/nginx-cloudflare-real-ip.

CloudFlare HTTPS

CloudFlafe offers a wide range of HTTPS solutions that allows you to easily turn on/off SSL on your website. Depending on what kind of certificate you want to handle they offer "Flexible" and "Full" SSL variations. To enable HTTPS follow these steps:

Force HTTPS

By default CloudFlare HTTPS doesn't force all the traffic to HTTPS. To force HTTPS do the following:

By doing this all the traffic of your website will use HTTPS. When someone access your website using HTTP, CloudFlare will redirect those request to HTTPS.

More help

Visit CloudFlare Support if you need more help. You can also contact Chevereto support if you need anything.