====== Differences ====== This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
using:howto:twister_on_your_self-host_server [2014/03/20 01:10] samir |
using:howto:twister_on_your_self-host_server [2014/03/20 01:13] samir |
||
---|---|---|---|
Line 106: | Line 106: | ||
``` | ``` | ||
+ | # The redirection from http to https | ||
+ | <VirtualHost *:80> | ||
+ | DocumentRoot /var/www/ | ||
+ | ServerName twister.example.com | ||
+ | <IfModule mod_rewrite.c> | ||
+ | RewriteEngine on | ||
+ | RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 | ||
+ | </IfModule> | ||
+ | |||
+ | CustomLog /var/log/apache2/twister-access.log combined | ||
+ | ErrorLog /var/log/apache2/twister-error.log | ||
+ | </VirtualHost> | ||
+ | |||
+ | # The real part of the configuration | ||
<VirtualHost *:443> | <VirtualHost *:443> | ||
ServerAdmin webmaster@localhost | ServerAdmin webmaster@localhost |