Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:services:server_services:webhosting:redirect_to_ssl [2017/05/22 14:18]
rlossin [Redirection]
en:services:server_services:webhosting:redirect_to_ssl [2019/02/27 10:50]
tlinnem1 [Redirection]
Line 1: Line 1:
 +====== Redirecting to SSL-protected connection ======
 +===== Prerequisite ​ =====
  
 +In order to make sure that your website is delivered without showing a security warning please make sure to add your domain to the GWDG SSL certificate.
 +
 +===== Redirection =====
 +
 +The redirection can be configured by adding additional rules to the ''​.htaccess''​-file,​ which is processed by the webserver on every request. ​
 +
 +A working configuration is shown in this example:
 +
 +<​code>​
 +# GWDG SSL REDIRECTION
 +RewriteCond %{HTTP:​X-Forwarded-Proto} !https
 +RewriteRule ^.*$ https://​%{SERVER_NAME}%{REQUEST_URI}
 +# END GWDG SSL REDIRECTION
 +</​code>​
 +
 +===== Wordpress with SSL =====
 +  - Please install and activate the plugin "SSL Insecure Content Fixer"​.
 +  - Under the settings of the plugin "SSL Insecure Content Fixer" please select the item "​Simple"​.
 +  - Under "HTTPS detection"​ please select HTTP_X_FORWARDED_PROTO (eg load balancer, reverse proxy, NginX)
 +  - Now under Wordpress Address (URL) and Site Address (URL) you can specify the blog URL with https under the general settings of Wordpress.