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