Next part 1
Join the channel Telegram of the AnonyViet 👉 Link 👈 |
Explain more about the 4 modes of SSL and how to choose wisely:
- Off: do not use HTTPS. If there is access, it will be automatically switched to the HTTP version
- Flexible SSL: use HTTPS. Connection from user to Cloudflare is safe, however from Cloudflare to your origin server is not secure. This type is enabled and I also recommend it if Full mode has problems accessing.
- Full SSL: like Flexible but the connection from Cloudflare to the origin server is (pretty) secure. Pretty much because you can use the self-signed certificate to use it without warning like browsers do. Recomend using.
- Full SSL (strict): like Full SSL but Cloudflare requires the server to have a security certificate from a reputable provider.
Check and fix errors
How to know Cloudflare is active on the website?
There are many ways in which, you can check with the tool Pingdoms Toolsif the header of the website returned has one of the following data, then surely your website has been installed Cloudflare successful. If you have not seen a significant change in speed, you can use ping like I said below, see if it has changed Change to Cloudflare IP yet.
Also, a more classic way is to ping your domain name, if you get a strange IP, maybe 104.xxx.xxx.xxx, it’s done.
Error net::ERR_TOO_MANY_REDIRECTS when SSL is enabled
- In this case, when you are using WordPress due to not installed support plugin of Cloudflare error should occur. To fix it, follow the steps below.
- Disable SSL by Cloudflare (it’s convenient, or you can skip it)
- Edit the file wp-config.php by inserting this code just below the line .
– Remember instead example.com to your domain name. This step helps you to access the admin page of WordPress.
define('WP_HOME', 'http://example.com');
define('WP_SITEURL', 'http://example.com');
- Install plugin Cloudflare Flexible SSL immediately and always.
- Edit the wp-config.php file. From the two code snippets above, edit http:// Fort https://
- Done!
What to do with DDoS?
For Free plan, Cloudflare still support us anti DDoS light by turning on mode I’m Under Attack on the Overview tab. Customers when accessing the website will be stopped for about 5 seconds to Cloudflare test is still accessible, but still better than being unreachable.
However, you should check to see if the problem is actually happening because sometimes not due to DDoS. I used to have a website that was constantly sending requests, searching on WordPress (consuming a lot of resources, no cache). Must block at Page Rules then you can access it normally.
Updated CSS, JS but the page didn’t change anything
Simply Cloudflare already cached requests to these resources. You switch to tab Caching, choose either Purge all cache or Purge invidual files (all, nothing or certain files we just edited)
In case you are just building a website, and you still change a lot about the content and source code, I recommend turning off the orange cloud or turning it on. Development mode in tab Overview Please.
Author: Mr. Tuan Mod ThachPham