phpinfo-ssl.conf 679 B

12345678910111213141516171819202122232425262728
  1. <VirtualHost *:80>
  2. ServerName localhost
  3. <IfModule mod_rewrite.c>
  4. RewriteEngine On
  5. RewriteCond %{HTTPS} off
  6. RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
  7. </IfModule>
  8. </VirtualHost>
  9. <VirtualHost *:443>
  10. ServerName localhost
  11. DocumentRoot /var/www/html
  12. SSLEngine on
  13. SSLProtocol all -SSLv2
  14. SSLCipherSuite HIGH:3DES:!aNULL:!MD5:!SEED:!IDEA
  15. SSLCertificateFile ssl/autofirmado.crt
  16. SSLCertificateKeyFile ssl/autofirmado.key
  17. SSLOpenSSLConfCmd DHParameters "ssl/dhparam.pem"
  18. Header always set Strict-Transport-Security "max-age=63072000; includeSibdomains;"
  19. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  20. CustomLog logs/access.log common
  21. </VirtualHost *:443>