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