1234567891011121314151617181920212223242526272829303132333435 |
- <VirtualHost *:80>
- ServerName localhost
- <IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteCond %{HTTPS} off
- RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
- </IfModule>
- </VirtualHost>
- <VirtualHost _default_:443>
- ServerName localhost
- DocumentRoot /var/www/mediawiki
- 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
- RewriteEngine On
- RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L]
- RewriteRule ^/*$ %{DOCUMENT_ROOT}/index.php [L]
- </VirtualHost>
|