в апаче настройки
<VirtualHost *:80>
ServerName site.com
Redirect / https://www.site.com/
ServerAdmin webmaster@site.com
ServerAlias www.site.com
</VirtualHost>
<VirtualHost *:443>
DocumentRoot /home/www/site.com
ServerName site.com
ServerAlias www.site.com
ServerAdmin webmaster@site.com
<Directory "/home/www/site.com">
Options None
AllowOverride All
Require all granted
Options Indexes FollowSymLinks
</Directory>
ErrorLog /home/www/site.com/error.log
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/cert.pem
SSLCertificateKeyFile /etc/apache2/ssl/key.pem
SSLProtocol +TLSv1.2 +TLSv1.1 +TLSv1 -SSLv2 -SSLv3
SSLCACertificateFile /etc/apache2/ssl/site.com.ca-bundle
SSLCACertificateFile /etc/apache2/ssl/ca-certs.pem
SSLUseStapling on
SSLCompression Off
SSLHonorCipherOrder on
SSLCipherSuite "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384 \
ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-RC4-SHA \
ECDHE-RSA-AES256-SHA DHE-RSA-AES256-GCM-SHA384 DHE-RSA-AES256-SHA256 \
DHE-RSA-AES128-GCM-SHA256 DHE-RSA-AES128-SHA256 DHE-RSA-AES256-SHA \
DHE-RSA-AES128-SHA RC4-SHA AES256-GCM-SHA384 AES256-SHA256 \
CAMELLIA256-SHA ECDHE-RSA-AES128-SHA AES128-GCM-SHA256 AES1 \
28-SHA256 AES128-SHA CAMELLIA128-SHA !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS !RC4"
</VirtualHost>