ONE NET WIKI Free and professional IT Wiki

How to setup CloudFlare free SSL certificate for your website?

2019-02-06 ONE NET WIKI

certificate-of-1080x675.jpg

CloudFlare can provides a free SSL certificate for your website. Follow the instructions as follows:

1. Add you website into your CloudFlare account.

2. Choose the menu "Crypto", select "Flexible" under SSL section and turn on "Always Use HTTPS".

3. If you have more complex url settings, choose the menu "Page Rules" to create your own rules.

Now you have done the settings on the CloudFlare side. If the https is not working well on your website, you should check your web application and set up all secure links for your current links.

For example, in a Laravel Application, you can set up all links to be https-based by add the following codes in App\Providers\AppServiceProvider:

public function boot()
{
    if (env('APP_ENV') === 'production') {
        URL::forceScheme('https');
    }
}


Editor's Note: All the articles in this website are original. If reproduced, please indicate the source and link.
315
0
All Comments (0)
Expand to publish a comment

Web Development


Web Management


Web Marketing


Web Security