phpinfo-ssl.conf 694 B

123456789101112131415161718192021222324252627282930
  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. <IfModule mod_headers.c>
  18. Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains;"
  19. </IfModule>
  20. ErrorLog logs/error.log
  21. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  22. CustomLog logs/access.log common
  23. </VirtualHost *:443>