This documentation describes the usage of a previous web hosting offer proposed by Online.net.
Refer to the Scaleway Web Hosting documentation for information about the current web hosting product.
How to enable HTTPS for Webhosting Classic
Before you start
To complete the actions presented below, you must have:
- A Dedibox account logged into the console
- Created a Webhosting Classic
Scaleway Dedibox offers HTTPS on all its webhosting services by default. HTTPS allows you to secure the exchanges between the client (visitor of your site) and the server (our platform).
It is usually preferred for online shops, but HTTPS is becoming more and more a standard on the web.
The certificate is issued by Let’s Encrypt, an initiative that allows the generation of free SSL certificates known by all browsers.
TLS/SSL is enabled by default for all webhostings and does not require any configuration from you.
TLS/SSL is only compatible with OS/browsers that support SNI. This means that the following clients cannot connect to sites hosted in HTTPS:
- Windows XP (IE6/IE7)
- Android 2.x
- Versions below iOS 4 (iPhone)
How to force HTTPS for the whole website
To force a site to accept SSL, such as a CMS, simply add the following code to the .htaccess
file:
RewriteEngine OnRewriteCond %{HTTP:HTTPS} !onRewriteRule (.*) https://%{SERVER_NAME}/$1 [QSA,L,R=301]
How to disable HTTPS for the whole website
To disable SSL, you need to put the following code in the .htaccess
file
RewriteEngine OnRewriteCond %{HTTP:HTTPS} onRewriteRule (.*) http://%{SERVER_NAME}/$1 [QSA,L,R=301]
How to troubleshoot HTTPS issues
How to fix the mixed content issue
When using HTTPS, it needs to be used everywhere. It means that all the loaded elements on the webpage (pictures, CSS, JavaScripts) have to be loaded through HTTPS as well.
A website that loads, for example, JavaScript scripts or external images by HTTP, will display an HTTPS alert in the browser (e.g.: “non Secure Content”).
In some cases, it could not display it (Chrome did that in some cases).
How to fix the “insecure connection” issue
This may happen for example if the subdomain does not exist in the certificate.
In this case, you need to add the subdomain in the console, or if it exists already to add/delete it - or to create another subdomain (this will force the regeneration of the certificate).
How to fix the “connection error” issue
This error message means that there is no certificate for this domain. You need to verify the DNS records and force the regeneration by creating a subdomain from the Dedibox console.
How to fix the “too many redirections” issue
When using WordPress, you may encounter Too many redirections errors in your web browser.
This can be fixed by installing the Really Simple HTTPS plugin.
When using the plugin, make sure that the following lines are not present in your .htaccess
file:
RewriteEngine OnRewriteCond %{HTTP:HTTPS} !onRewriteRule (.*) https://%{SERVER_NAME}/$1 [QSA,L,R=301]
If you have installed WordPress according to the WordPress documentation, simply replace in the table (prefix)_options
the siteurl
and home
entries from https to http before installing the aforementioned plugin.