Domů | Blogy | Blog uživatele kamilhlavka

Instalace ssl - https šifrování

Nákup na https://www.ssls.cz/

 

Apache

<VirtualHost *:80>

ServerName xx.cz
ServerAlias *.xx.cz
ServerAlias xx.cz

DocumentRoot /var/www/xxxx

<Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>

 <Directory /var/www/xxxx>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

</VirtualHost>

<VirtualHost *:443>

ServerName xxx.cz
ServerAlias *.xxxx.cz
ServerAlias xxx.cz

DocumentRoot /var/www/xxxx

<Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>

 <Directory /var/www/xxx>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

SSLEngine on

SSLProtocol all -SSLv2 -SSLv3

SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM

SSLCertificateFile    /var/www/xx/cert/ServerCertificate.crt
SSLCertificateKeyFile /var/www/xx/cert/www.xxx.cz.key
SSLCACertificateFile /var/www/xxx/cert/Alpiro-TrustProvider-IntermediateCA.crt

</VirtualHost>