9 Aralık 2014 Salı

only ssl apache2 gentoo

merhabalar
 apache de sitenizin sadece  https ile goruntulenmesini istiyorsaniz yapmaniz gereken sadece asagidaki yesil alani domain inizin conf dosyasina eklemektir






<IfDefine SSL>
<IfDefine SSL_DEFAULT_VHOST>
<IfModule ssl_module>

<VirtualHost *:80>
        ServerName gentootr.info
        Redirect / https://gentootr.info/
</VirtualHost>


<VirtualHost 192.168.1.3:443>

     ServerAdmin webmaster@omersaruhan.com
        ServerName www.gentootr.info
        ServerAlias gentootr.info
  DirectoryIndex index.html index.htm index.php
  DocumentRoot /var/www/localhost/htdocs/gentootr.info
    SSLEngine on
        SSLCertificateFile /etc/apache2/ssl/gentootr.info.crt
        SSLCertificateKeyFile /etc/apache2/ssl/gentootr.info.key
       SSLOptions StrictRequire
    SSLProtocol ALL -SSLv2 -SSLv3
     SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128:AES256:HIGH:!RC4:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!PSK
    SSLHonorCipherOrder On


  ErrorLog  /etc/apache2/log/gentootr.info/error.log
  CustomLog /etc/apache2/log/gentootr.info/access.log combined



   <Directory /var/www/localhost/htdocs/gentootr.info/>
      SSLRequireSSL
      Options FollowSymLinks
      AllowOverride all
      Order allow,deny
      Allow from all


   </Directory>
    <IfModule setenvif_module>
        BrowserMatch ".*MSIE.*" \
            nokeepalive ssl-unclean-shutdown \
            downgrade-1.0 force-response-1.0
    </IfModule>

</VirtualHost>

















Hiç yorum yok:

Yorum Gönder